/* =============================================================
   theme.css – gemeinsames Hochzeits-Design (Daniel & Abena)
   Wird NACH allen anderen Stylesheets geladen und überschreibt
   die alten Template-Styles. Farben & Schriften wie galerie.html.
   ============================================================= */

:root {
    --plum: #372428;
    --plum-soft: #4a3237;
    --gold: #e8ca6f;
    --gold-hover: #f0d888;
    --gold-deep: #8a6914;     /* Gold für Text auf hellem Grund (Kontrast 4.8:1) */
    --ivory: #faf8f5;
    --sand: #efe9e1;
    --line: #e4dcd2;
    --ink: #2f2a2b;
    --ink-soft: #4d4547;      /* Fließtext (8:1 auf Weiß) */
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-soft);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); padding-bottom: 14px; }
strong { font-weight: 600; color: var(--ink); }
a { transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
a:hover, a:focus { color: var(--gold-deep); }
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--gold) !important;
    outline-offset: 3px;
}
::selection { background: var(--gold); color: var(--plum); }

/* ---------- Überschriften ---------- */
h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(32px, 4.6vw, 46px);
    line-height: 1.15;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--plum);
    margin: 0 0 18px;
}
h5 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--plum);
    margin: 28px 0 10px;
}
.events .time {
    display: inline-block;
    margin-left: 6px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--gold-deep);
}

/* kleine Gold-Linie unter Abschnittstiteln */
#invitation h3::after,
.events h3.header::after,
#map h3::after {
    content: "";
    display: block;
    width: 64px;
    height: 1px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.events h3.header { text-align: center; margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn, .btn-white, .btn-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn-small { padding: 0 26px; }
.btn:active, .btn-white:active, .btn-fill:active { transform: scale(.97); }

.btn-accent, .btn-fill {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--plum);
}
.btn-accent:hover, .btn-accent:focus, .btn-fill:hover, .btn-fill:focus {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--plum);
    box-shadow: 0 6px 18px rgba(55, 36, 40, .16);
}
.btn-white {
    border: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
    background: transparent;
}
.btn-white:hover, .btn-white:focus {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--plum);
}

/* ---------- Navigation ---------- */
header {
    width: min(1170px, 92%);
    padding: 28px 0 !important;            /* scripts.js setzt sonst Inline-Padding */
    border-bottom: 1px solid rgba(255, 255, 255, .18) !important;
}
header > .header-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
}
/* no backdrop-filter here: it would trap the full-screen mobile menu inside the bar */
.navigation.fixed {
    background-color: rgba(55, 36, 40, .96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.navigation.fixed header { padding: 12px 0 !important; border-bottom-color: transparent !important; }
header .logo { flex: 0 0 auto; line-height: 0; }
header .logo img { height: 46px !important; width: auto; }
header .header-nav { flex: 1 1 auto; }
header nav { display: flex; align-items: center; width: 100%; }
header ul.primary-nav { margin: 0 0 0 28px; display: flex; flex-wrap: wrap; gap: 4px 26px; }
header ul.primary-nav li a {
    padding: 8px 0 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .92);
    position: relative;
}
header ul.primary-nav li a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
header ul.primary-nav li a:hover { color: var(--gold); }
header ul.primary-nav li a:hover::after { transform: scaleX(1); }
header .member-actions { position: static !important; margin: 0 0 0 auto; padding: 0; }
header .member-actions li a { font-weight: 600; letter-spacing: .12em; }

/* "Fotogalerie"-Knopf: am Desktop steht der Link schon im Menü */
.nav-cta { display: none; }

@media screen and (max-width: 991px) {
    header { width: 92%; padding: 18px 0 !important; padding-left: 0 !important; }
    header > .header-content { gap: 12px; }
    .navigation.fixed header { padding: 10px 0 !important; }
    header .logo img { height: 40px !important; }
    .nav-cta { display: block; margin-left: auto; margin-right: 60px; }
    .nav-cta .btn { display: inline-flex; width: auto; margin: 0; }   /* gegen ".hero .btn {width:80%}" */
    .nav-cta .btn-small { padding: 0 18px; min-height: 40px; font-size: 12px; }
    .navicon { top: 50% !important; transform: translateY(-50%); right: 0; height: 26px; z-index: 100000; }
    header .header-nav { background-color: rgba(30, 19, 22, .98); }
    header .header-nav.open { opacity: 1; }
    header nav { display: block; }
    header ul.primary-nav { display: block; margin: 0; }
    header ul.primary-nav li { margin-bottom: 18px; }
    header ul.primary-nav li a::after { display: none; }
    header ul.primary-nav li a { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: .01em; text-transform: none; }
    header .member-actions { margin: 10px 0 0; }
    header .member-actions li a { font-family: var(--sans); font-size: 14px; }
}

/* ---------- Abschnitte ---------- */
.section-padding { padding: 80px 0; }
@media (max-width: 767px) { .section-padding { padding: 56px 0; } }

#invitation { background: var(--ivory); }
#invitation p {
    max-width: 640px;
    margin: 0 auto 14px;
    text-align: center;
    font-size: 17px;
    white-space: pre-line;
}
#invitation p:last-child { font-size: 20px; margin-top: 8px; }

.events { background: #fff; }
.events .leftcol { border-right-color: var(--line); }
.events p { text-align: left; }
.events .wp3 > p:first-child strong,
.events .wp4 > p:first-child strong {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--plum);
    letter-spacing: .01em;
}
.events .wp6 {
    margin-top: 36px;
    padding: 26px 28px 28px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.events .wp6 h5 { margin-top: 0; }
.events .wp6 .btn { margin-top: 6px; }

/* Galerie-Karussell ("Galerie"-Titel und Karten) */
.game-section { background: var(--ivory); padding: 72px 24px 56px; }
.game-section h2.line-title {
    width: auto;
    margin: 0 auto 28px;
    padding: 0;
    text-align: center;
    font-family: var(--serif);
    font-size: clamp(32px, 4.6vw, 46px);
    font-weight: 600;
    line-height: 1.15;
    text-transform: none;
    color: var(--plum);
}
.game-section h2.line-title::before { display: none; }
.game-section h2.line-title::after {
    position: static;
    display: block;
    width: 64px;
    height: 1px;
    margin: 16px auto 0;
    border-radius: 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.game-section .item { border-radius: 14px; }
.game-section .item:after { background-image: linear-gradient(rgba(20, 12, 14, 0) 45%, rgba(20, 12, 14, .85)); }
.game-section .item-desc h3 {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.game-section .item-desc h3 .fa { color: var(--gold); margin-right: 4px; }
.game-section .item-desc p { font-size: 14px; color: rgba(255, 255, 255, .85) !important; }
.game-section .owl-theme .owl-dots .owl-dot span { background: var(--line); }
.game-section .owl-theme .owl-dots .owl-dot.active span,
.game-section .owl-theme .owl-dots .owl-dot:hover span { background: var(--gold-deep); }

/* Video-Abschnitt */
#video-content h5 { font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: #fff; }
#video-content p { letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--gold); }

/* Karte */
#map h3 + p { color: var(--ink-soft); }
#map-content { border-radius: 14px; box-shadow: 0 10px 40px rgba(55, 36, 40, .15); }
.toggle-map-content { border-radius: 999px; }

/* Dress-Code-Fenster */
.modal-content { border-radius: 14px; border: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-body { padding: 28px 30px 34px; }
.modal-body p { text-align: left; white-space: pre-line; }
.modal-body h3.section-padding { padding: 18px 0 8px; }

/* Footer */
footer .content { border-top-color: var(--line); }
footer .content p { color: var(--ink-soft); }
footer .content p:first-of-type { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--plum); }
footer .to-top-wrapper { border-color: var(--line); }
footer .to-top-wrapper .to-top { color: var(--plum); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
