/* assets/css/style.css – helles, freundliches Design für Gaststätte Stedener Forst */

:root {
    /* Grundfarben */
    --bg-page: #f2e8d5;        /* sandig / beige */
    --bg-page-soft: #efe6d6;
    --bg-card: #ffffff;
    --bg-card-soft: #faf7f0;

    --color-text: #2b2b2b;     /* dunkles Anthrazit */
    --color-muted: #6c6c6c;

    --green: #6f8f4f;          /* Moosgrün */
    --green-dark: #556b2f;
    --gold: #c7a047;           /* Honig / Gold */
    --gold-soft: #d7b55b;
    --wood: #cbb79b;

    --danger: #c75246;
    --success: #4c9c5b;

    --border-soft: #e0d6c5;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
    --radius-lg: 18px;
    --radius-md: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #f7f0e2 0, #f2e8d5 40%, #ebdfcc 100%);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--green-dark);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header & Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 252, 246, 0.96);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.7rem 0;
}

.branding {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #e2d4b8;
    background: radial-gradient(circle at 20% 20%, #fdf7e6, #e2c47f 45%, #c29b4b 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: #4e3a17;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.branding-text .site-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-dark);
}

.branding-text .site-subtitle {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-muted);
}

.main-nav {
    position: sticky;
    top: 60px;
    z-index: 20;
    background: #fffaf1;
    border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.4rem 0 0.6rem;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.1rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--color-muted);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.is-active {
    border-color: #d7c7a2;
    background: #f4ecdd;
    color: var(--green-dark);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #d8c9ae;
    background: #fffaf1;
    padding: 6px 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #7b5c2c;
}

.page-main {
    padding: 1.5rem 0 2.75rem;
}

/* Hero */

.hero {
    padding: 1.6rem 0 0.5rem;
}

.hero-grid {
    display: grid;
    gap: 1.4rem;
}

/* Dezente Einstiegsanimation im Hero-Bereich */
.hero-title,
.hero-subtitle,
.hero-text,
.hero-actions {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-subtitle { animation-delay: 0.05s; }
.hero-text { animation-delay: 0.1s; }
.hero-actions { animation-delay: 0.15s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card {
    border-radius: 26px;
    padding: 1.6rem 1.6rem 1.8rem;
    background: linear-gradient(135deg, #fffdf8, #f4ecdd);
    border: 1px solid #e4d6c1;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 5% 0%, rgba(233, 211, 160, 0.7) 0, transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(163, 190, 140, 0.5) 0, transparent 55%);
    opacity: 0.35;
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-dark);
    background: rgba(255, 252, 244, 0.9);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e0d4c0;
    position: relative;
    z-index: 1;
}

.hero-title {
    position: relative;
    z-index: 1;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0.9rem 0 0.25rem;
    color: var(--green-dark);
}

.hero-subtitle {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    margin-bottom: 0.9rem;
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.2rem;
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    color: inherit;
    min-height: 2.6rem;
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    background-color 0.16s ease-out, color 0.16s ease-out, border-color 0.16s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, #6f8f4f, #556b2f);
    color: #ffffff;
    border-color: #4a5b26;
    box-shadow: 0 8px 18px rgba(94, 128, 60, 0.35);
    transform-origin: center;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(94, 128, 60, 0.4);
}

.btn-outline {
    border-color: #c9bda7;
    background: #fffaf1;
    color: var(--green-dark);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: #f4ecdd;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f3ebdc;
    border: 1px solid #e1d3bf;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-dark);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--success);
}

/* Heute-Box */

.today-box {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid #deceb3;
    background: linear-gradient(135deg, #f9f3e5, #f2e5c9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.today-box-closed {
    background: linear-gradient(135deg, #f6e0dc, #f1d2c7);
}

.today-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-muted);
}

.today-value {
    font-weight: 600;
    color: var(--color-text);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #f1f6ed;
    border: 1px solid #c9ddbd;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-dark);
}

/* Hero Bildseite */

.hero-visual {
    border-radius: 26px;
    padding: 1.2rem 1.2rem 1.4rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 236, 223, 0.96)),
        url("https://images.pexels.com/photos/260922/pexels-photo-260922.jpeg?auto=compress&cs=tinysrgb&w=1600") center/cover no-repeat;
    border: 1px solid #e0d2c0;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(255, 252, 245, 0.95), rgba(255, 252, 245, 0.4));
}

.hero-visual-content {
    position: relative;
    z-index: 1;
}

.hero-visual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-visual-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.3rem;
    margin: 0.9rem 0 0.35rem;
    color: var(--green-dark);
}

.hero-visual-text {
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 20rem;
}

.hero-visual-meta {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #f5ede0;
    border: 1px solid #e0c989;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7b5c2c;
}

.badge-gold-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d7b55b;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #ddccb0;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.badge-pill span {
    margin-left: 0.3rem;
    font-weight: 600;
    color: var(--green-dark);
}

.badge-soft-alt {
    background: #f4f0e7;
    border-color: #dfd0b7;
}

/* Sektionen & Karten */

.section {
    margin-top: 1.6rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
}

.section-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.section-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.25rem;
    color: var(--green-dark);
}

.section-grid {
    display: grid;
    gap: 1.1rem;
}

.card {
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--wood);
    box-shadow: var(--shadow-soft);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.4rem;
}

.card-title {
    font-weight: 600;
    color: var(--green-dark);
}

.card-text {
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Speisekarte */

.menu-section {
    margin-top: 1rem;
}

.menu-card {
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--wood);
    box-shadow: var(--shadow-soft);
}

.menu-category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.menu-category-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.05rem;
    color: var(--green-dark);
}

.menu-category-description {
    font-size: 0.86rem;
    color: var(--color-muted);
}

.menu-items {
    margin-top: 0.6rem;
}

.menu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 0.8rem;
    padding: 0.5rem 0;
    border-top: 1px dashed #e4d7c2;
}

.menu-item:first-child {
    border-top: none;
}

.menu-item-name {
    font-weight: 500;
    color: var(--color-text);
}

.menu-item-desc {
    grid-column: 1 / -1;
    font-size: 0.86rem;
    color: var(--color-muted);
}

.menu-item-price {
    font-weight: 600;
    font-feature-settings: "lnum";
    color: var(--green-dark);
}

/* Content-Karten (Kontakt, Impressum etc.) */

.content-card {
    border-radius: 22px;
    padding: 1.2rem 1.2rem 1.4rem;
    background: var(--bg-card-soft);
    border: 1px solid var(--wood);
    box-shadow: var(--shadow-soft);
}

.content-card h1,
.content-card h2,
.content-card h3 {
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--green-dark);
}

.content-card h1 {
    font-size: 1.5rem;
    margin-top: 0;
}

.content-card h2 {
    font-size: 1.1rem;
}

.content-card p {
    line-height: 1.7;
    color: var(--color-text);
}

/* Tabellen */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.table th,
.table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #e9ddc8;
}

.table th {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    background: var(--green);
}

.table tr:nth-child(even) td {
    background: #faf5ec;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover td {
    background: #f3ebdd;
}

/* Badges */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(76, 156, 91, 0.1);
    border: 1px solid rgba(76, 156, 91, 0.6);
    color: #3d7e48;
}

.badge-danger {
    background: rgba(199, 82, 70, 0.1);
    border: 1px solid rgba(199, 82, 70, 0.6);
    color: #a7463b;
}

/* Footer */

.site-footer {
    margin-top: 0.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border-soft);
    background: #f4ebdd;
}

.footer-grid {
    display: grid;
    gap: 1.1rem;
    font-size: 0.9rem;
}

.footer-grid h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    margin-top: 0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.3rem;
}

.admin-link {
    margin-top: 0.7rem;
    font-size: 0.8rem;
}

.footer-bottom {
    margin-top: 1rem;
    border-top: 1px solid var(--border-soft);
    padding: 0.7rem 0 0.9rem;
    font-size: 0.76rem;
    color: var(--color-muted);
}

/* Formulare */

.form-grid {
    display: grid;
    gap: 0.8rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

label {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="time"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid #d9ccb9;
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.92rem;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(111, 143, 79, 0.18);
}

.alert {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.6rem;
    font-size: 0.86rem;
}

.alert-danger {
    background: rgba(199, 82, 70, 0.08);
    border: 1px solid rgba(199, 82, 70, 0.5);
    color: #7f352b;
}

.alert-success {
    background: rgba(76, 156, 91, 0.08);
    border: 1px solid rgba(76, 156, 91, 0.5);
    color: #386b41;
}

/* Banner */

.banner {
    border-radius: 16px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.9rem;
    border: 1px solid #e2d4bc;
    background: #fffaf1;
}

.banner-warning {
    background: #fff4e4;
    border-color: #f1cf98;
}

.banner-info {
    background: #eef6ff;
    border-color: #c0d7f3;
}

.banner-title {
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: var(--green-dark);
}

.banner-type {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Admin-Layout */

.admin-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-page);
}

.admin-main {
    flex: 1;
    padding: 1.6rem 0 2.4rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.admin-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.3rem;
    color: var(--green-dark);
}

.admin-subtitle {
    font-size: 0.86rem;
    color: var(--color-muted);
}

.admin-grid {
    display: grid;
    gap: 0.9rem;
}

.admin-card {
    border-radius: 18px;
    padding: 0.9rem 1rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--wood);
    box-shadow: var(--shadow-soft);
}

.admin-card h3 {
    font-size: 0.95rem;
    margin-top: 0;
    color: var(--green-dark);
}

.admin-kachel-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid #e0d4c0;
    background: #faf4e9;
    color: var(--color-text);
    transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out,
    background-color 0.16s ease-out;
}

.admin-kachel-link:hover,
.admin-kachel-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: #d1c0a4;
    background: #fdf7ee;
}

.admin-kachel-link span {
    font-size: 0.88rem;
}

.admin-kachel-link small {
    font-size: 0.76rem;
    color: var(--color-muted);
}

.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* Utilities */

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--color-muted);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* Responsive */

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        right: 1.25rem;
        top: 2.6rem;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.45rem;
        background: #fffaf1;
        border-radius: 14px;
        border: 1px solid #e1d3bf;
        box-shadow: var(--shadow-soft);
        transform-origin: top right;
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    }

    .nav-links.open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .hero-grid {
        gap: 1.1rem;
    }

    .hero-card,
    .hero-visual {
        padding: 1.2rem 1.2rem 1.4rem;
    }

    .footer-grid {
        gap: 0.9rem;
    }
}

@media (min-width: 721px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 2fr 1.2fr 1.2fr;
    }

    .admin-grid {
        grid-template-columns: 1.3fr 1fr;
    }
}

/* iOS Safe-Area-Korrektur (z.B. Notch / obere Browser-Leiste) */
@supports (padding: max(0px)) {
    .site-header {
        padding-top: max(0px, env(safe-area-inset-top));
    }

    .main-nav {
        top: calc(60px + max(0px, env(safe-area-inset-top)));
    }
}
