* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ad-height: 60px;
    --blue: #003E8C;
}

html, body {
    height: 100%;
}

body { 
    font-family: Montserrat, system-ui, sans-serif; 
    line-height: 1.5; 
    color: var(--blue);
}

ul {
  list-style-position: inside;
  padding-left: 0; 
  margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

input, textarea {
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 0.5rem;
    font-size: medium;
    font-family: inherit;
}


.page-wrapper {
    display: flex; /* Für seitliche Banner */
    min-height: 100vh;
    min-height: 100dvh;
    gap: 1rem;
}

#puzzlePageWrapper {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}



.main-container {
    max-width: 800px; /* Zentriert auf großen Screens */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    height: 100%;
}

.logo {
    margin-bottom: 2rem; /* Abstand zum restlichen Content */
    width: 90%; 
    max-width: 400px; /* Logo nicht zu groß */
}

.logo img {
    width: 100%; 
    height: auto; 
    display: block; /* Entfernt Unterleisten-Gap */
}

.pulse {
  animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* ========= BURGER IM CONTENT ========= */

.burger-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 50;
}

/* Checkbox verstecken */
#burger-toggle {
    display: none;
}

/* Overlay (unsichtbar) */
.burger-overlay {
    display: none;
}

/* Wenn Menü offen → Overlay aktiv */
#burger-toggle:checked ~ .burger-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: transparent;
}

/* Burger Icon */
.burger-btn {
    width: 38px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 30;

}

.burger-btn span {
    height: 4px;
    width: 100%;
    background: #CCC;
    border-radius: 2px;
}

/* Menü */
.burger-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(6px);
    padding: 15px 20px;
    border-radius: 10px;
    display: none;
    min-width: 250px;
    z-index: 20;

}

.burger-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 8px 0;
}

/* Toggle ohne JS */
#burger-toggle:checked ~ .burger-menu {
    display: block;
}

/* ========= BURGER IM CONTENT ENDE ========= */

.content { 
    flex: 1; 
    background: linear-gradient(to bottom, var(--blue) 0%, #82AAD1 40%, #C0D6EA 100%);
    display: flex; 
    flex-direction: column; 
    align-items: center;
    text-align: center; 
    min-height: 0;
    padding-bottom: var(--ad-height);
    position: relative;
}

#start.content{ 
    padding-left: 1.5rem; 
    padding-top: 1.5rem; 
    padding-right: 1.5rem; 
}

#header {
    flex: 0 0 auto;
    padding: 8px 12px;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    background: #FFF;
    border-bottom: 1px solid #ccc;
}

#title {
    font-size: 18px;
    font-weight: 600;
}

#gameArea {
    flex: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 0;
}

#canvasWrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

#canvasWrapper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;

}


#calendar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;

    padding: 0.8rem 1.5rem 1.5rem 1.5rem;

    /* Glassmorphism */
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);

    box-shadow:
        0 8px 32px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.4);
}

.month-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.month-nav .inactive {
    color:#ccc !important;
}
.prev {
    justify-self: start;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--blue);
}

.month {
    font-size: 1.5rem;
    font-weight: bold;
    justify-self: center;
}

.next {
    justify-self: end;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--blue);
}
#calendar hr {
    border: none;             /* keine Standardlinie */
    height: 1px;              /* dünne Linie */
    margin: 0;           /* Abstand oben/unten */
    
    background-color: rgba(255, 255, 255, 0.85); /* halbtransparent, passend zum Button */
    
    /* subtiler Schatten für Tiefe */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
}

.agb-header {
    padding: 10px;
    background-color: #C0D6EA;
}

.nav-btn {
    background-color: var(--blue);
    color: #FFF;
    padding: 5px 15px;
    border: 1px solid #FFF;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: normal;

}

.btn {
    display: block;
    text-align: center;
    padding: 10px 5px;
    /* padding: clamp(5px, 3%, 10px); */
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;

    color: #ffffff;

    /* Glas */
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 14px;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.4);

    transition: all 0.25s ease;
}

a.btn:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 30px rgba(0,0,0,0.35),
        inset 0 1px 2px rgba(255,255,255,0.5);
}

.btn:active {
    transform: translateY(4px);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.25),
        inset 0 2px 4px rgba(0,0,0,0.2);
}

.btn.future {
    background: rgba(229,231,235,0.15);
    color: #E5E7EB;
}

.btn.today {
    background: rgba(37,99,235,0.5);
    font-weight: bold;
}

.btn.history {
    background: rgba(255,233,3,0.5);
    color: var(--blue);
}

.btn.solved {
    text-decoration: underline green 0.3rem;
}

.btn.navigation{
    background: rgba(2,53,141,0.75);
    border: 2px solid rgba(255, 255, 255, 0.5); 
    border-radius: 14px;

}

/* navigation */
.navigation {
    display: block; /* Entfernt Unterleisten-Gap */
    padding: 5px 10px;
}

.navigation img {
    max-width: 150px; /* Logo nicht zu groß */
    width: 100%; 
    display: block;
    margin: 0 auto;
}

/*blinkender Stern*/
.main-container .flash {
    position: absolute;
/*    width: 50px;*/
    pointer-events: none;
    opacity: 0;
    animation: fadeStar 1.6s ease-in-out;
    filter: drop-shadow(0 0 8px #FFE903)
            drop-shadow(0 0 16px #FFE903);
}

/* Animation */
@keyframes fadeStar {
    0%   { opacity: 0; transform: scale(0.6); }
    20%  { opacity: 1; transform: scale(1); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: scale(0.8); }
}
section.ad-banner { 
    padding: 1rem; 
    background: #ddd; 
    text-align: center; 

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--ad-height);
    background: #222;
    color: #fff;
    z-index: 1000;
}


/* Footer */
footer {
    border-top: 1px solid #ccc;
    padding: 10px 20px 60px 20px;  /* 60 Platz für die Bottom-Bar */
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

footer a, footer a:visited, footer a:active {
    text-decoration: none;
    color: var(--blue);
}


.side-ad {
    flex: 0 0 300px; /* Feste Breite für Banner */
    background: #ffe; 
    text-align: center;
    display: none; /* Auf Mobil ausblenden */
}

/* Tablet/Desktop: Seitliche Banner sichtbar */
@media (min-width: 1024px) {
    .side-ad { display: block; }
}

/* Mobil: Volle Breite, kein Flex-Wrapper nötig */
@media (max-width: 768px) {
    .page-wrapper { 
        flex-direction: column;
/*        padding: 0.5rem; */
    }
    .side-ad, #taeglich { display: none; } /* Oder stacke sie */
    .main-container { 
        max-width: 100%;
    }
    .logo {
        max-width: 250px; /* Logo nicht zu groß */
    }
}
