/* --------------------------------------------------
   Basis / Reset
-------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #f4ece2 0, #ede0d2 35%, #1e1412 100%);
    color: #201715;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------
   Farben & Tokens
-------------------------------------------------- */

:root {
    /* Layout-Breite */
    --layout-max-width: 1320px;

    /* Grundflächen */
    --bg-main: #f8f3ed;   /* warmes, weiches Creme */
    --bg-alt: #f2e7dc;    /* leicht dunkler für Abwechslung */

    /* Hero-Bereich (leicht golden & warm) */
    --bg-hero: radial-gradient(
        circle at top left,
        #fff8f2 0%,
        #f9ecde 45%,
        #f1dccd 100%
    );

    /* Karten / Container */
    --bg-card: #fff6ef;

    /* Textfarben */
    --text-main: #2a1a16;     /* weiches Dunkelbraun statt Schwarz */
    --text-muted: #8b6f63;    /* sanft und harmonisch */
    --text-soft: #c8a898;     /* leichte Pastellnote */

    /* Wein-Akzentfarben */
    --accent: #8b1e3f;        /* Ruby Red / Burgunder */
    --accent-soft: #b5425a;   /* heller Weinrot-Ton */
    --accent-dark: #65182f;   /* dunklere Version */
    --accent-contrast: #fff9f5;

    /* Wein-Gold Akzente */
    --gold: #d7b88f;
    --gold-soft: #e5cfae;

    /* Schatten & Rahmen */
    --border-subtle: rgba(120, 80, 60, 0.18);
    --shadow-soft: 0 18px 40px rgba(120, 60, 40, 0.18);

    /* Radien */
    --radius-lg: 18px;
    --radius-pill: 999px;
}

/* --------------------------------------------------
   Layout-Container
-------------------------------------------------- */

main {
    flex: 1 0 auto;
}

.container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3.5rem 0;
    background: transparent;
}

.section-alt {
    background: rgba(255, 249, 244, 0.96);
}

/* --------------------------------------------------
   Header & Navigation
-------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(
        to right,
        #7a122e,
        #912743
    );
    border-bottom: 1px solid rgba(255, 235, 225, 0.12);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 1 auto;
}

.logo-wrap img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: #fff7ec;
}

.logo-text small {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 244, 230, 0.7);
}

.logo-text span {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Navigation */

.main-nav {
    flex: 1 1 auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff5ea;
    position: relative;
    padding-bottom: 0.35rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #f7a84c);
    transition: width 0.25s ease;
    border-radius: 999px;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

/* ab Desktop: keine 2. Zeile mehr */

@media (min-width: 1100px) {
    .header-inner {
        flex-wrap: nowrap;
    }
    .main-nav ul {
        flex-wrap: nowrap;
    }
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: var(--accent-contrast);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(77, 24, 24, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(77, 24, 24, 0.45);
    filter: brightness(1.05);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(77, 24, 24, 0.3);
}

.btn.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff5ea;
    box-shadow: none;
}

.btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-small {
    padding: 0.55rem 1.2rem;
    font-size: 0.82rem;
    box-shadow: 0 8px 18px rgba(77, 24, 24, 0.3);
}

/* --------------------------------------------------
   Hero-Bereich
-------------------------------------------------- */

.hero {
    position: relative;
    padding: 2.2rem 0 2.6rem;
    background: url('/uploads/690d5e230f1d60e301f5.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

/* Blur-Overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px) brightness(0.82);
    background: rgba(255, 245, 236, 0.55);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 2rem;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-inner > div:first-child {
    flex: 1 1 55%;
    min-width: 300px;
}

.hero-cta-box {
    flex: 0 0 320px;
    max-width: 360px;
    padding: 1.6rem 1.8rem;
    background: radial-gradient(circle at top left, #3a2620 0, #231512 45%, #191010 100%);
    color: #fff1e0;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hero-headline {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: #1b0f0b;
}

.hero-subline {
    font-size: 1rem;
    color: #4d362b;
    max-width: 640px;
}

.hero-subline p {
    margin-top: 0;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.hero-tag {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(166, 58, 58, 0.09);
    border: 1px solid rgba(166, 58, 58, 0.3);
    color: #5c2b21;
}

/* Hero CTA Box Inhalt */

.hero-cta-header h2 {
    margin: 0.35rem 0 0;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffeddb;
}

.hero-cta-box h2 {
    margin: 0;
}

.hero-cta-box p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.hero-cta-box strong {
    color: #ffe1c1;
}

.hero-cta-box a {
    color: #ffe9d2;
}

.hero-cta-box .btn {
    width: 100%;
    margin-top: 1.2rem;
    justify-content: center;
}

/* Öffnungs-Details */

.hero-hours {
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-hour-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 0.12rem 0;
}

.hero-hour-row span:first-child {
    color: rgba(255, 235, 218, 0.9);
}

.hero-hour-row span:last-child {
    color: #ffe4c8;
    font-weight: 500;
}

.hero-hour-row-closed span:last-child {
    color: #f0a6a6;
    font-style: italic;
}

.hero-contact {
    font-size: 0.9rem;
}

.hero-contact p {
    margin: 0.05rem 0;
}

.hero-contact-lines span {
    display: block;
}

/* Status-Badge */

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #ffefe0;
}

.special-card .badge-pill {
    border-width: 0;                 /* kein weißer Rand */
    font-weight: 600;
}

.badge-pill-soft {
    background: #f8d4c5;             /* warmes Lachs-Rosa */
    color: #7b2f26;
}

/* Silvester / Gold-Highlight */
.badge-pill-gold {
    background: #f1dfb8;             /* Champagner-Gold */
    color: #6a4725;
}

.hero-status-sub {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 240, 220, 0.85);
}

/* Status-Varianten */
.badge-open {
    background: rgba(120, 200, 140, 0.22);
    border-color: rgba(120, 200, 140, 0.7);
    color: #eafff0;
}

.badge-soon {
    background: rgba(215, 184, 143, 0.22);
    border-color: rgba(215, 184, 143, 0.7);
    color: #fff5e1;
}

.badge-closed {
    background: rgba(200, 70, 70, 0.24);
    border-color: rgba(210, 95, 95, 0.8);
    color: #ffeaea;
}

/* Hero responsiv */

@media (max-width: 900px) {
    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 2.5rem;
    }

    .hero-inner {
        padding: 0 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    /* Box NICHT mehr nach oben ziehen → Text zuerst */
    .hero-cta-box {
        width: 100%;
        max-width: none;
    }
}

/* --------------------------------------------------
   Typografie / Standard Sektionen
-------------------------------------------------- */

.section h1,
.section h2,
.section h3 {
    margin: 0 0 1rem;
    color: #231612;
}

.section h1 {
    font-size: 2rem;
}

.section h2 {
    font-size: 1.6rem;
}

.section h3 {
    font-size: 1.25rem;
}

.section p {
    margin: 0.4rem 0;
    color: var(--text-main);
}

.section p + p {
    margin-top: 0.3rem;
}

/* --------------------------------------------------
   Karten / Info-Grid
-------------------------------------------------- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.8rem;
    box-shadow: 0 14px 34px rgba(110, 72, 55, 0.18);
    border: 1px solid var(--border-subtle);
}

.info-card h2,
.info-card h3 {
    margin-top: 0;
}

.info-card small {
    color: var(--text-soft);
}

/* --------------------------------------------------
   Formulare
-------------------------------------------------- */

.form-card {
    background: #fffaf5;
    border-radius: 20px;
    padding: 1.8rem 1.9rem 2.1rem;
    box-shadow: 0 18px 36px rgba(82, 55, 39, 0.22);
    border: 1px solid var(--border-subtle);
    max-width: 900px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1 1 0;
    min-width: min(260px, 100%);
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #3b2519;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(101, 76, 59, 0.3);
    padding: 0.65rem 0.7rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background: rgba(255, 253, 249, 0.98);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 2px rgba(193, 91, 77, 0.2);
    background: #fffdf8;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
    color: #3a261b;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.08rem;
}

/* Formular Meldungen */

.form-errors,
.form-success {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.form-errors {
    background: #fff1f1;
    border: 1px solid #e38c8c;
    color: #752323;
}

.form-errors ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.form-success {
    background: #edf8ef;
    border: 1px solid #7bbf88;
    color: #1f5130;
}

/* --------------------------------------------------
   Tabellen / Öffnungszeiten (Kontakt-Seite)
-------------------------------------------------- */

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.hours-table td {
    padding: 0.15rem 0.25rem;
}

.hours-table td:first-child {
    color: var(--text-muted);
}

/* --------------------------------------------------
   Specials (Tagesgericht / Silvester)
-------------------------------------------------- */

.specials-section {
    background: rgba(255, 249, 244, 0.96);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.specials-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.specials-headline h2 {
    margin-bottom: 0.3rem;
}

.specials-headline p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.special-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 1.4rem 1.5rem 1.5rem;
    box-shadow: 0 14px 30px rgba(110, 72, 55, 0.18);
    border: 1px solid var(--border-subtle);
}

.special-card-header h3 {
    margin: 0.35rem 0 0.6rem;
}

.special-card-body p {
    margin: 0.25rem 0;
}

.special-card-highlight {
    border-color: rgba(215, 184, 143, 0.7);
    box-shadow: 0 16px 36px rgba(143, 70, 43, 0.22);
    position: relative;
    overflow: hidden;
}

.special-card-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(215, 184, 143, 0.22), transparent 55%);
    pointer-events: none;
}

/* --------------------------------------------------
   Ambiente / Mood-Karten
-------------------------------------------------- */

.mood-header {
    margin-bottom: 1.5rem;
}

.mood-header h2 {
    margin-bottom: 0.3rem;
}

.mood-header p {
    margin: 0;
    color: var(--text-muted);
}

/* Grid: auf Desktop 2x2 */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

@media (min-width: 900px) {
    .mood-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

/* Karten-Basis */
.mood-card {
    background: var(--bg-card);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(82, 55, 39, 0.22);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.mood-card-large {
    grid-column: span 2;
}

/* Bilder: gleiche Höhe */
.mood-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.mood-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.35s ease;
}

.mood-card:hover .mood-image-wrapper img {
    transform: scale(1.06);
}

/* Textbereich */
.mood-card figcaption {
    padding: 1.1rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.mood-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.mood-card p {
    margin: 0.25rem 0;
    font-size: 0.92rem;
}

/* Link unten immer am Ende */
.mood-link {
    margin-top: auto;
    padding-top: 0.4rem;
}

.text-link {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

/* Mobile: Karten nicht künstlich strecken */
@media (max-width: 768px) {
    .mood-grid {
        grid-template-columns: 1fr;
    }

    .mood-card {
        min-height: 0;
    }

    .mood-card figcaption {
        display: block;
    }

    .mood-link {
        margin-top: 0.4rem;
    }
}

/* Unterer Abstand zur nächsten Sektion/Fuß */
.section-bottom-gap {
    padding-bottom: 3.5rem;
}

/* --------------------------------------------------
   Map / Google Maps Embed
-------------------------------------------------- */

.map-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(82, 55, 39, 0.28);
    border: 1px solid rgba(91, 63, 46, 0.25);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
    background: #1b1210;
    color: #f4e8dd;
    padding: 1.2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: #f7e6d4;
}

.footer-links a:hover {
    text-decoration: underline;
}

.site-footer a {
    color: #f7e6d4;
}

/* Inhalt aus dem Editor (Weingarten, Feiern, etc.) */
.cms-content p {
    margin: 0.4rem 0;
}

/* Bilder im CMS-Content: nebeneinander möglich, trotzdem responsive */
.cms-content img {
    display: inline-block;          /* nicht mehr block → können nebeneinander */
    margin: 0.25rem 0.5rem 0.25rem 0;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

/* Wenn TinyMCE zentriert (text-align:center) setzt, respektieren wir das */
.cms-content p[style*="text-align: center"],
.cms-content p[style*="text-align:center"] {
    text-align: center;
}

/* --------------------------------------------------
   Responsive Feinschliff allgemein
-------------------------------------------------- */

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 2.6rem 0;
    }

    .footer-inner {
        padding: 0 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-inner {
        padding: 0.8rem 1.25rem;
    }

    .main-nav ul {
        justify-content: flex-start;
        gap: 1rem;
    }
}
