/* Flohmarkt-Design: Farben */
:root {
    --primary-red: #e53935;
    --accent-white: #ffffff;
    --accent-green: #8bc34a;
    --accent-orange: #ffaaaa;
    --text-dark: #333;
    --background: #fffbe6;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

header {
    background: var(--accent-white);
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-red);
    margin-bottom: 2rem;
    position: relative;
}

h1, h2 {
    color: var(--primary-red);
    font-family: Arial, sans-serif;
    letter-spacing: 0.08em;
    margin-bottom: 0.5em;
    text-shadow: 1px 1px 0 #fff, 2px 2px 0 var(--accent-white);
}

h1 {
    font-size: 2.2em;
    margin-top: 0.2em;
}

h2 {
    font-size: 1.3em;
    margin-top: 1.5em;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2em;
    margin: 1em 0 0 0;
    padding: 0;
}

nav ul li a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(229,57,53,0.07);
}

section {
    margin-bottom: 2.2em;
}

ul {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.7em;
    font-size: 1.05em;
}

/* Checklisten-Häkchen */
li.check {
    list-style: none;
    position: relative;
    padding-left: 2em;
}
li.check::before {
    content: '✔';
    color: var(--primary-red);
    font-size: 1.3em;
    position: absolute;
    left: 0;
    top: 0.1em;
}

/* Kategorien-Liste */
ul.kategorien {
    margin-top: 0.5em;
    margin-bottom: 1em;
}
ul.kategorien li {
    font-weight: bold;
    margin-bottom: 0.4em;
}
ul.kategorien li:nth-child(1) { color: var(--accent-orange); }
ul.kategorien li:nth-child(2) { color: var(--accent-green); }
ul.kategorien li:nth-child(3) { color: var(--primary-red); }
ul.kategorien li:nth-child(4) { color: #1976d2; }

/* Hinweise und wichtige Absätze */
.important {
    color: var(--primary-red);
    font-weight: bold;
}

.highlight {
    background: var(--accent-yellow);
    padding: 0.2em 0.5em;
    border-radius: 6px;
}

footer {
    text-align: center;
    padding: 1.5rem 1rem 1rem 1rem;
    background: var(--accent-white);
    border-top: 4px solid var(--primary-red);
    margin-top: 2.5rem;
    font-size: 1em;
    border-radius: 0 0 16px 16px;
}

/* Kontaktbereich */
.kontakt {
    margin-top: 2em;
    padding: 1em;
    background: #fffbe6;
    border: 2px dashed var(--accent-orange);
    border-radius: 10px;
    font-size: 1.1em;
}

.kontakt strong {
    color: var(--primary-red);
}

/* WhatsApp-Styles (angepasst) */
.whatsapp-body {
    text-align: center;
    padding: 50px;
    background-color: #fffbe6;
}
.whatsapp-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.whatsapp-loading {
    margin: 20px 0;
    font-size: 2em;
}

/* Header und Footer Bilder */
.header-images {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-sun {
    height: 96px;
    width: auto;
}

.footer-images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 8px;
}

.footer-icon {
    height: 48px;
    width: auto;
}

/* Responsive - Tablets */
@media (min-width: 601px) and (max-width: 900px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.2em;
    }
    nav ul {
        gap: 1.5em;
    }
}

/* Responsive - Mobile Geräte */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
    
    main, .container, .whatsapp-container {
        padding: 1em;
        border-radius: 8px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    /* Navigation vertikal stapeln für bessere Bedienbarkeit */
    nav ul {
        flex-direction: column;
        gap: 0.5em;
        align-items: center;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.8em 1.5em;
        font-size: 1.1em;
        min-height: 44px;
        line-height: 1.5;
    }
    
    /* Kleinere Bilder auf Mobile */
    .header-sun {
        height: 56px;
    }
    
    .footer-icon {
        height: 36px;
    }
    
    footer {
        font-size: 0.95em;
    }
    
    /* Kalender-Optionen stapeln */
    .calendar-options {
        gap: 16px;
    }
    
    .calendar-link {
        min-width: 100%;
    }
    
    /* QR-Code Tabelle auf Mobile */
    table {
        font-size: 0.95em;
    }
    
    table td {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5em;
    }
    
    table td:first-child {
        width: 100%;
        padding-top: 1em;
        padding-bottom: 0.3em;
    }
    
    table img {
        margin: 0 auto;
        max-width: 150px;
    }
}

/* Responsive - Sehr kleine Handys */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    header {
        padding: 1.5rem 0.5rem 0.75rem 0.5rem;
    }
    
    h1 {
        font-size: 1.3em;
        margin-top: 0.3em;
    }
    
    h2 {
        font-size: 1.1em;
    }
    
    main {
        padding: 0.75em;
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    nav ul li a {
        font-size: 1em;
        padding: 0.7em 1.2em;
    }
    
    /* Noch kleinere Bilder auf sehr kleinen Displays */
    .header-sun {
        height: 48px;
    }
    
    .footer-icon {
        height: 32px;
    }
    
    .footer-images {
        gap: 16px;
    }
    
    li {
        font-size: 1em;
    }
}

.calendar-options {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 1em;
    margin-bottom: 1em;
}

.calendar-link {
    flex: 1 1 220px;
    min-width: 220px;
    background: #fffbe6;
    border: 2px solid var(--accent-yellow);
    border-radius: 10px;
    padding: 1em;
    box-shadow: 0 2px 8px rgba(229,57,53,0.04);
    text-align: center;
}

.calendar-link a {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-red);
    text-decoration: none;
}

.calendar-link a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.calendar-hint {
    font-size: 0.95em;
    color: #555;
    margin-top: 0.5em;
}

/* QR-Code Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

table td {
    padding: 1em;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

table td:first-child {
    font-weight: bold;
    width: 40%;
}

table img {
    max-width: 200px;
    height: auto;
    display: block;
} 