@charset "utf-8";

/* W3.CSS 1.71 by J.E.Refsnes. Do not remove this line. */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    &:focus {
        outline: none;
    }
}
/* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary, innerform {
    display: block;
}
audio, canvas, video {
    display: inline-block;
    vertical-align: baseline;
}
audio:not([controls]) {
    display: none;
    height: 0;
}
[hidden], template {
    display: none;
}
a {
    -webkit-tap-highlight-color: transparent;
    background-color: transparent;
}
a:active, a:hover {
    outline: 0;
}
abbr[title] {
    border-bottom: 1px dotted;
}
b, strong {
    font-weight: bold;
}
dfn {
    font-style: italic;
}
mark {
    background: #ff0;
    color: #000;
}
small {
    font-size: 80%}
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup {
    top: -0.5em;
}
 sub {
    bottom: -0.25em;
}
ul, li {
    padding: 0;
    list-style: none;
}
img {
    border: 0;
}
 svg:not(:root) {
    overflow: hidden;
}

hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}
pre {
    overflow: auto;
}
code, kbd, pre, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}
button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
    background-color: transparent;
    box-shadow: none;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance:none;
    outline-style: none;
    border-radius: 0;
    border-style: none;
}
button {
    overflow: visible;
    cursor: pointer;
}
button, select {
    text-transform: none;
}
/*button, html input[type=button], input[type=reset], input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
}*/
button[disabled], html input[disabled] {
    cursor: default;
}
button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}
input {
    line-height: normal;
}
input[type=checkbox], input[type=radio] {
    padding: 0;
}
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    height: auto;
}
input[type=search] {
    box-sizing: content-box;
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration {
    -webkit-appearance: none;
}
fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}
legend {
    border: 0;
    padding: 0;
}
textarea {
    overflow: auto;
}
optgroup {
    font-weight: bold;
}
/* End extract from normalize.css */

html {
    font-size: 100%;
}
body, html {
  width: 100%;
  overflow-x: hidden; /* verhindert horizontales Scrollen */
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}
body {
  font-family: "Comic Sans MS", cursive, sans-serif;
  background: linear-gradient(to bottom, #b3e0ff, #ffffff);
  text-align: center;

  color: #333;
  overflow-x: hidden;
  margin: 0;
  font-size: 22px;
    min-width: 320px;
    width: 100%;
    white-space: normal;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 2.5em;
}
main {
    width: 100%;

    overflow: hidden;
    position: relative;
  padding: 40px 20px;
}
h1 {
  color: #d12b2b;
  text-shadow: 2px 2px 0 #fff;
  animation: bounce 2s infinite ease-in-out alternate;
  font-size: 2.25em;
}
h2, h3, h4 {
    font-size: 2em;
}
p {
    font-size: 1.25em;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* === Karten / Boxen === */
.card {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-top: 30px;
  position: relative;
  max-width: 500px;
  width: 100%;
}

/* === Formulare === */
input, button {
  font-size: 1.1em;
  padding: 12px 18px;
  margin: 8px;
  border-radius: 10px;
  border: 2px solid #ff4747;
  width: 80%;
  max-width: 320px;
  box-sizing: border-box;
}

button {
  background-color: #ff4747;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

button:hover {
  transform: scale(1.05);
  background-color: #e03b3b;
}

/* === Texte === */
.result {
  font-size: 2em;
  color: #006600;
  font-weight: bold;
  margin-top: 25px;
  word-wrap: break-word;
}

footer {
  margin-top: 50px;
  font-size: 0.9em;
  color: #444;
}

.wichtel {
  font-size: 3em;
  animation: spin 3s linear infinite;
  display: block;
  margin-bottom: 15px;
}
.wichtel img {
    width:3em;
    height:auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === Tabellen (Admin-Seite) === */
table {
  width: 100%;
  max-width: 600px;
  font-size: 1em;
  border-collapse: collapse;
}

td, th {
  border: 1px solid #ccc;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  th {
    display: none;
  }

  td {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ddd;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
  }

  table {
    box-shadow: none;
  }
}

/* === Responsive Textgrößen === */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

  button, input {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

  .card {
    padding: 20px 15px;
  }

  button, input {

    width: 90%;
  }

}

/* === Schneeflocken === */
.snowflake {
  position: fixed;
  top: -10px;
  color: white;
  font-size: 1.5em;
  user-select: none;
  z-index: 9999;
  animation-name: fall;
  animation-timing-function: linear;
}

@keyframes fall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
#playBtn {
  background-color: #ff4747;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1.1em;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s, background-color 0.2s;
}

#playBtn:hover {
  transform: scale(1.05);
  background-color: #e03b3b;
}
