/* css/style.css */

/* Allgemeine Einstellungen */
:root {
    --color-mustard: #3b82f6;     /* Freundliches Blau (Primary Action) */
    --color-sausage: #374151;     /* Dunkelgrau statt Anthrazit */
    --color-bread: #f9fafb;       /* Sehr helles Grau */
    --color-ketchup: #ef4444;     /* Dezentes Rot */
    --color-text: #1f2937;        /* Dunkelgrau fÃƒÂ¼r Text */
    --color-bg-light: #eeeeee;    /* WeiÃƒÅ¸er Seitenhintergrund */
    --color-bg-dark: #374151;     /* Footer/Header */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--color-sausage);
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between; /* FÃƒÂ¼r Desktop: Titel/Toggle links, Nav rechts */
    align-items: center;
    flex-wrap: wrap; /* ErmÃƒÂ¶glicht Umbruch, wenn nicht genug Platz */
    position: relative; /* Wichtig fÃƒÂ¼r die absolute Positionierung der mobilen Navigation */
}

/* Neuer Container fÃƒÂ¼r Titel und Hamburger-Button auf MobilgerÃƒÂ¤ten */
.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Nimmt volle Breite im Header ein */
    flex-grow: 1; /* Erlaubt, dass es auf Desktop den verfÃƒÂ¼gbaren Platz einnimmt */
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Hamburger-MenÃƒÂ¼-Button */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: none; /* StandardmÃƒÂ¤ÃƒÅ¸ig auf Desktop ausblenden */
    z-index: 100; /* Sicherstellen, dass er ÃƒÂ¼ber anderem Inhalt liegt */
}

/* BegrÃƒÂ¼ÃƒÅ¸ungstext */
.greeting {
    color: white;
    margin: 0; /* Standard-Margin zurÃƒÂ¼cksetzen */
    padding: 0.5rem 0; /* Etwas vertikaler Abstand */
    width: auto; /* StandardmÃƒÂ¤ÃƒÅ¸ig auto-Breite fÃƒÂ¼r Desktop */
    text-align: right; /* StandardmÃƒÂ¤ÃƒÅ¸ig rechts ausgerichtet fÃƒÂ¼r Desktop */
    flex-shrink: 0; /* Nicht schrumpfen lassen */
    padding-right: 1rem; /* Etwas Abstand zum rechten Rand */
}

/* Navigation (Desktop-Stile) */
header nav {
    flex-grow: 0; /* Nav soll nicht wachsen */
    display: block; /* FÃƒÂ¼r Desktop sichtbar */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* StandardmÃƒÂ¤ÃƒÅ¸ig horizontal fÃƒÂ¼r Desktop */
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

header nav a, header nav span {
    color: white;
    text-decoration: none;
    padding: 0.1rem 0.1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Formulare */
form {
    _background-color: var(--color-bread);
    _padding: 1.5rem;
    _border-radius: var(--border-radius);
    _margin-bottom: 2rem;
    _box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--color-sausage);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid var(--color-sausage);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1rem;
    background-color: white;
}

/* Generischer Button-Stil fÃƒÆ’Ã‚Â¼r <button> und <a> */
input[type="submit"],
button,
.button { /* .button-Klasse fÃƒÆ’Ã‚Â¼r Links, die wie Buttons aussehen sollen */
    background-color: #1f2937;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Wichtig fÃƒÆ’Ã‚Â¼r <a> Tags, damit sie padding etc. bekommen */
    text-decoration: none; /* Entfernt Unterstreichung bei <a> Tags */
    text-align: center; /* Zentriert Text in <a> Tags */
}

input[type="submit"]:hover,
button:hover,
.button:hover {
    transform: translateY(-2px);
}

/* Spezielle Button-Farben */
.button.secondary { /* FÃƒÆ’Ã‚Â¼r "Abbrechen" Buttons */
    background-color: #ccc;
    color: #333;
}

.button.secondary:hover {
    background-color: #bbb;
}

/* Nachrichten */
.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    font-weight: bold;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-list li {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2px;
}

.order-list .label {
    font-weight: 600;
}

.order-list .value {
    text-align: right;
    color: #374151;
}

.double-underline {
    text-decoration-line: underline;
    text-decoration-style: double;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: var(--color-bread);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden; /* FÃƒÆ’Ã‚Â¼r abgerundete Ecken */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-sausage);
}

th {
    background-color: var(--color-sausage);
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5); /* Leichter Streifen-Effekt */
}

/* Footer */
footer {
    background-color: var(--color-sausage);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Responsive Design fÃƒÆ’Ã‚Â¼r schmale Screens */
@media (max-width: 800px) {
    header {
        flex-direction: column; /* Header-Elemente untereinander */
        align-items: flex-start; /* Alles links ausrichten */
        padding: 1rem; /* Padding anpassen */
    }

    .header-top-bar {
        padding-bottom: 0.5rem; /* Abstand unter Titel/Toggle */
    }

    .greeting {
        text-align: left; /* BegrÃƒÂ¼ÃƒÅ¸ung links ausrichten */
        padding-left: 0; /* Horizontalen Padding entfernen */
        margin-bottom: 1rem; /* Abstand unter BegrÃƒÂ¼ÃƒÅ¸ung */
        width: 100%; /* Nimmt volle Breite ein */
    }

    .menu-toggle {
        display: block; /* Hamburger-Button auf kleinen Bildschirmen anzeigen */
    }

    header nav { /* Das Nav-Element selbst */
        width: 100%;
        position: absolute; /* Absolut positioniert relativ zum Header */
        top: auto; /* Top-Position wird von JS/CSS gesteuert */
        left: 0;
        background-color: var(--color-sausage);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 99;
        display: none; /* Navigation standardmÃƒÂ¤ÃƒÅ¸ig auf MobilgerÃƒÂ¤ten ausblenden */
    }

    header nav.nav-open { /* Wenn die Klasse 'nav-open' von JS hinzugefÃƒÂ¼gt wird */
        display: block; /* Navigation anzeigen */
    }

    header nav ul {
        display: flex; /* Wichtig: Mache die UL wieder zu einem Flex-Container */
        flex-direction: column; /* Links vertikal stapeln */
        align-items: flex-start; /* NEU: Richte die Flex-Items (die LI's) links aus */
        gap: 0; /* Abstand zwischen Links entfernen */
        width: 100%; /* Volle Breite */
        padding: 0;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Trenner oben */
    }

    header nav ul li {
        width: 100%; /* Stelle sicher, dass jeder MenÃƒÂ¼punkt die volle Breite einnimmt */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Trenner fÃƒÂ¼r MenÃƒÂ¼punkte */
    }

    header nav ul li:last-child {
        border-bottom: none;
    }

    header nav a {
        display: block; /* Stelle sicher, dass der Link den gesamten Bereich des LI ausfÃƒÂ¼llt */
        padding: 0.8rem 1.5rem; /* Padding fÃƒÂ¼r MenÃƒÂ¼punkte anpassen */
        text-align: left; /* Text links ausrichten */
    }

    main {
        padding: 1rem;
        margin: 1rem auto;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    select,
    textarea {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header nav a, header nav span {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    th, td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* Anpassung fÃƒÆ’Ã‚Â¼r Buttons mit Ketchup-Hintergrundfarbe */
button[style*="background-color: var(--color-ketchup);"] {
    color: white; /* Setzt die Textfarbe auf WeiÃƒÆ’Ã…Â¸ */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0.5rem 0rem;
}

/* ZugÃƒÂ¤nglichkeit fÃƒÂ¼r Screenreader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-image {
    width: 60vw;        /* 60 % der Viewport-Breite */
    max-width: 400px;    /* Sicherheit: nie grÃƒÂ¶ÃƒÅ¸er als Container */
    height: auto;       /* SeitenverhÃƒÂ¤ltnis erhalten */
    display: block;
    margin: 2rem auto;  /* zentriert */
    border-radius: var(--border-radius);
}

/* Basis */
.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th,
.order-table td {
    padding: 0.6rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
    overflow: visible;
}

.summary-box {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: #d1ecf1;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    bottom: 1rem;
}

/* .ordered-list{display:flex;flex-direction:column;gap:4px;font-size:.95rem} */
.ordered-list {width: 100%;}
.ordered-item{white-space: normal; width: 100%;}
.order-table td.ordered-list {width: 100%;}
@media (max-width:800px){.ordered-list{font-size:.9rem}}



/* ===== Finaler Fix: Mobile Karten linksbündig ===== */
@media (max-width: 768px) {
    .order-table td,
    .order-table th {
        text-align: left !important;
    }
    .order-table thead {
	display: none;
    }

    table:not(.no-responsive),
    table:not(.no-responsive) tbody,
    table:not(.no-responsive) th,
    table:not(.no-responsive) td,
    table:not(.no-responsive) tr {
        display: block;
    }
    
    tbody tr {
        background: #fff;
        border-radius: 12px;
        margin-bottom: 14px;
        padding: 12px 14px;
        box-shadow: 0 4px 10px rgba(0,0,0,.05);
        text-align: left;
    }

    td {
        border: none;
        padding: 6px 15px;
        text-align: left;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: #5c677d;
        margin-bottom: 2px;
        font-size: .85rem;
        text-align: left;
    }

    td[data-label="Name"] {
        font-size: 1.05rem;
        font-weight: 700;
    }

    td[data-label="Gesamtsumme"] {
        margin-top: 8px;
        font-weight: 700;
        color: #1b5e20;
    }

    /* ===== Mobile Summenbox Styling ===== */
    .summary-box {
        border-radius: 14px;
        padding: 1.2rem;
        font-size: 1rem;
        text-align: left;
    }
}

