/* ============================================================
   DER EISDEALER — Premium Stylesheet
   Aesthetic: Luxury Italian Gelateria
   Architektur: Mobile-First, fluide Typografie, responsive Grid
   ============================================================ */

/* ---------- Design Tokens ---------- */

/* ============================================================
   LOKAL EINGEBUNDENE FONTS (DSGVO-konform – keine Google-Server)
   ============================================================ */

/* Cormorant Garamond */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-600italic.woff2') format('woff2');
}

/* DM Sans */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}

:root {
    --cream:        #f7f0e6;
    --cream-light:  #fdf8f2;
    --espresso:     #1c1410;
    --espresso-2:   #2a1f18;
    --espresso-3:   #120d0a;
    --gold:         #c8a96e;
    --gold-light:   #e8cfa0;
    --text:         #2a1f18;
    --text-muted:   #7a6a5a;
    --white:        #ffffff;
    --success:      #22c55e;
    --danger:       #ef4444;

    --shadow-soft:  0 8px 40px rgba(28, 20, 16, 0.08);
    --shadow-med:   0 16px 60px rgba(28, 20, 16, 0.14);
    --shadow-deep:  0 24px 80px rgba(28, 20, 16, 0.18);

    --radius:       16px;
    --radius-sm:    8px;
    --radius-pill:  999px;

    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition:   all 0.4s var(--ease);

    --nav-h:        72px;
    --container:    1200px;
    --pad-x:        clamp(20px, 5vw, 28px);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Hintergrund auf html-Ebene verhindert helle Streifen
       am Rand auf iOS-Safari (Pull-to-Refresh / Bouncing) */
    background: var(--cream-light);
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--cream-light);
    line-height: 1.65;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
img { font-style: italic; color: transparent; } /* Cleaner alt-text fallback */

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.65rem); }

em { font-style: italic; color: var(--gold); }

a { color: inherit; }

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

/* Bessere Focus-Outlines für Tastatur-Nutzer */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip-Link für Screenreader / Tastatur */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--espresso);
    color: var(--cream);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    z-index: 10000;
    font-weight: 500;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout-Bausteine ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.section { padding: clamp(60px, 10vw, 110px) 0; }

.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--cream); }
.section-dark p { color: rgba(247, 240, 230, 0.7); }

.eyebrow {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 7vw, 64px);
}

.section-header p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-pill);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.3s var(--ease),
                background-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease),
                border-color 0.3s var(--ease);
    letter-spacing: 0.02em;
    min-height: 48px; /* Touch-Target Minimum */
    line-height: 1;
}

.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--espresso-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 20, 16, 0.25);
}

.btn-light { background: var(--cream); color: var(--espresso); }
.btn-light:hover,
.btn-light:focus-visible {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(247, 240, 230, 0.5);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--cream);
    background: rgba(247, 240, 230, 0.1);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; min-height: 40px; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 1000;
    /* Safe-Area-Padding für Notch-Geräte (iPhone X+) */
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    transition: background-color 0.4s var(--ease),
                box-shadow 0.4s var(--ease),
                backdrop-filter 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(252, 248, 242, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(28, 20, 16, 0.08);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s var(--ease), filter 0.4s var(--ease);
}
.logo-img:hover { transform: scale(1.04); }

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    letter-spacing: 0.03em;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

/* Navbar transparent (über Hero) */
.navbar:not(.scrolled) .nav-links a { color: var(--cream); }
.navbar:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }
.navbar:not(.scrolled) .hamburger span { background: var(--cream); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin-right: -10px; /* Optisch ausrichten */
    border-radius: 6px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease),
                opacity 0.3s var(--ease),
                background 0.3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Negative Margins falls ein Eltern-Container je Padding hätte –
       hier nicht nötig, aber für Robustheit auf 0 fixiert */
    margin: 0;
    /* iOS Safari: stellt sicher, dass das Bild auch hinter
       den Safe-Areas (Notch) durchläuft */
    background: var(--espresso);
}

.hero-img-wrap { position: absolute; inset: 0; z-index: 0; }

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.05);
    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 20, 16, 0.55) 0%,
        rgba(28, 20, 16, 0.4)  50%,
        rgba(28, 20, 16, 0.7)  100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--cream);
    padding: 0 var(--pad-x);
    max-width: 820px;
    padding-top: var(--nav-h);
}

.hero-content .badge {
    display: inline-block;
    background: rgba(200, 169, 110, 0.25);
    border: 1px solid rgba(200, 169, 110, 0.6);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-content h1 {
    color: var(--cream);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(0.98rem, 2.2vw, 1.1rem);
    color: rgba(247, 240, 230, 0.85);
    margin-bottom: clamp(28px, 5vw, 44px);
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.scroll-hint {
    position: absolute;
    bottom: max(28px, env(safe-area-inset-bottom, 28px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 12px;
    cursor: pointer;
    text-decoration: none;
}

.scroll-arrow {
    display: block;
    width: 22px;
    height: 22px;
    border-right: 2px solid rgba(247, 240, 230, 0.7);
    border-bottom: 2px solid rgba(247, 240, 230, 0.7);
    transform: rotate(45deg);
    animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
    50%      { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ---------- Reveal Animations ---------- */
.reveal, .reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s var(--ease);
    transition-delay: var(--delay, 0s);
    will-change: opacity, transform;
}

.reveal       { transform: translateY(20px); }
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-delay-1 { --delay: 0.15s; }
.reveal-delay-2 { --delay: 0.3s;  }
.reveal-delay-3 { --delay: 0.45s; }

.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ---------- Eissorten-Grid ---------- */
.filter-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulseDot 2s ease infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.ice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(14px, 2.5vw, 24px);
}

/* Skeleton Loader */
.skeleton-card {
    height: 160px;
    background: linear-gradient(90deg, #ede8e2 25%, #f5f0ea 50%, #ede8e2 75%);
    background-size: 200% 100%;
    border-radius: var(--radius);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ice-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid rgba(28, 20, 16, 0.07);
    transition: transform 0.4s var(--ease),
                box-shadow 0.4s var(--ease),
                border-color 0.4s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.ice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-med);
    border-color: transparent;
}

.ice-card h4 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 10px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag {
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-milch      { background: #eff6ff; color: #1d4ed8; }
.tag-vegan      { background: #f0fdf4; color: #15803d; }
.tag-glutenfrei { background: #fefce8; color: #a16207; }
.tag-alkohol    { background: #fef2f2; color: #b91c1c; }

.ice-card-footer {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.sold-out-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f5f5f5;
    color: #aaa;
    padding: 3px 10px;
    font-size: 0.68rem;
    border-radius: 4px;
    font-weight: 500;
}

.ice-card.sold-out { opacity: 0.55; }

.ice-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--danger);
}
.ice-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ---------- Grid-Helper ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 4vw, 32px);
    align-items: start;
}

/* ---------- Hours / Location Cards ---------- */
.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(247, 240, 230, 0.12);
    border-radius: var(--radius);
    padding: clamp(28px, 5vw, 44px);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.card-eyebrow {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.card h3 { color: var(--cream); margin-bottom: 20px; }

.status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.status-badge.open   { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-badge.closed { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.hours-list { list-style: none; }
.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(247, 240, 230, 0.1);
    font-size: 0.95rem;
    color: rgba(247, 240, 230, 0.75);
}

.small-note {
    font-size: 0.78rem;
    color: rgba(247, 240, 230, 0.4);
    margin-top: 16px;
    font-style: italic;
}

.address {
    font-size: 1.05rem;
    color: rgba(247, 240, 230, 0.75);
    line-height: 1.7;
    margin-bottom: 28px;
    font-style: normal;
}

.map-btn {
    margin-top: 8px;
    background: var(--gold);
    color: var(--espresso);
}
.map-btn:hover,
.map-btn:focus-visible {
    background: var(--gold-light);
    box-shadow: 0 8px 24px rgba(200, 169, 110, 0.3);
}

/* ---------- Über uns ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
}

.about-img-wrap { position: relative; }

.about-img {
    width: 100%;
    height: clamp(380px, 50vw, 560px);
    object-fit: cover;
    border-radius: var(--radius);
}

.about-img-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.4;
}

.about-text h2 { margin-bottom: 24px; }

.about-text p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 1rem;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 32px);
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(28, 20, 16, 0.1);
}

.stat { text-align: center; flex: 1 1 auto; min-width: 90px; }

.stat-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

/* ---------- Galerie ---------- */
.section-gallery { padding: clamp(50px, 8vw, 80px) 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 340px 240px;
    gap: 16px;
    padding: 0 var(--pad-x);
    max-width: var(--container);
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 20, 16, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s;
    margin: 0;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay { opacity: 1; }

.gallery-overlay span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--cream);
    font-style: italic;
}

.gallery-wide { grid-column: span 3; }

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(32px, 5vw, 44px) 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(247, 240, 230, 0.1);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s var(--ease),
                background-color 0.4s var(--ease),
                border-color 0.4s var(--ease);
}

.contact-card:hover,
.contact-card:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(200, 169, 110, 0.4);
    transform: translateY(-4px);
}

.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.15);
    border: 1px solid rgba(200, 169, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 18px;
    transition: background-color 0.4s, border-color 0.4s;
}

.contact-card:hover .contact-icon {
    background: rgba(200, 169, 110, 0.25);
    border-color: var(--gold);
}

.contact-card h4 {
    color: var(--cream);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.9rem;
    color: rgba(247, 240, 230, 0.55);
    word-break: break-word;
}

.contact-card-whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.25);
}
.contact-card-whatsapp .contact-icon {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.3);
    color: #4ade80;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--espresso-3);
    padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(247, 240, 230, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(247, 240, 230, 0.5);
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.social-icon:hover,
.social-icon:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(247, 240, 230, 0.3);
    letter-spacing: 0.04em;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links button {
    color: rgba(247, 240, 230, 0.35);
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
    font-family: 'DM Sans', sans-serif;
    padding: 4px 0;
}
.footer-links button:hover,
.footer-links button:focus-visible { color: var(--gold); }

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80vw, 320px);
    height: 100%;
    height: 100dvh;
    background: var(--cream-light);
    z-index: 1100;
    padding: calc(var(--nav-h) + 30px) 36px 40px;
    transition: right 0.4s var(--ease);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open { right: 0; }

.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid rgba(28, 20, 16, 0.08); }

.mobile-menu a {
    display: block;
    padding: 18px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible { color: var(--gold); }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 20, 16, 0.5);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(28, 20, 16, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal.open { display: flex; }

.modal-content {
    background: var(--cream-light);
    padding: clamp(28px, 5vw, 52px);
    border-radius: var(--radius);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-deep);
    -webkit-overflow-scrolling: touch;
}

.modal-content h2 { margin-bottom: 20px; }
.modal-content p { color: var(--text-muted); margin-bottom: 12px; }
.modal-content strong { color: var(--text); }

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 50%;
    transition: color 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-modal:hover,
.close-modal:focus-visible {
    color: var(--text);
    background: rgba(28, 20, 16, 0.06);
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    left: 50%;
    transform: translateX(-50%);
    background: var(--espresso);
    color: var(--cream);
    padding: 14px 22px;
    border-radius: 50px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 16px;
    width: calc(100% - 32px);
    max-width: 520px;
    font-size: 0.88rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-banner.hide {
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}

.cookie-banner p { color: rgba(247, 240, 230, 0.85); flex: 1 1 auto; min-width: 0; }
.cookie-banner .btn-primary {
    background: var(--gold);
    color: var(--espresso);
    font-size: 0.82rem;
    padding: 8px 20px;
    min-height: 36px;
    flex-shrink: 0;
}
.cookie-banner .btn-primary:hover { background: var(--gold-light); }

/* =================================================
   RESPONSIVE BREAKPOINTS
   ================================================= */

/* Tablet & kleines Laptop */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-img-wrap { order: -1; }
    .about-img-accent { display: none; }

    .grid-2 { grid-template-columns: 1fr; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-auto-rows: 220px;
    }
    .gallery-wide { grid-column: span 2; }

    .contact-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* Mobile groß */
@media (max-width: 640px) {
    :root { --nav-h: 64px; }

    .hero { min-height: 92vh; min-height: 92dvh; }
    .hero-content { padding-top: var(--nav-h); }

    .hero-btns { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
    .hero-btns .btn { width: 100%; }

    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery-wide { grid-column: span 1; }

    .footer-inner { gap: 18px; }
    .footer-copy { padding: 0 8px; }

    .hours-list li { flex-direction: column; gap: 2px; }
    .hours-list li span:last-child { font-weight: 500; color: var(--gold-light); }
}

/* Sehr kleine Smartphones */
@media (max-width: 380px) {
    :root { --pad-x: 18px; }
    .logo-img { height: 44px; }
    .btn { padding: 12px 22px; font-size: 0.88rem; }
    .cookie-banner { padding: 12px 16px; font-size: 0.82rem; }
}

/* Mobile-Landscape (kurze Höhe) */
@media (max-height: 540px) and (orientation: landscape) {
    .hero { min-height: 520px; }
    .hero-content { padding-top: 80px; padding-bottom: 40px; }
    .scroll-hint { display: none; }
}

/* Großer Desktop / Wide-Screen */
@media (min-width: 1440px) {
    :root { --container: 1280px; }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-bg-img { transform: none; }
    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right { opacity: 1; transform: none; }
}

/* Print-Stylesheet (minimal) */
@media print {
    .navbar, .mobile-menu, .mobile-overlay, .cookie-banner, .scroll-hint, .modal { display: none !important; }
    .hero { min-height: auto; page-break-after: avoid; }
    .section { padding: 30px 0; }
    body { background: white; color: black; }
}

/* =================================================
   ADMIN PANEL
   ================================================= */
.admin-wrapper {
    max-width: 800px;
    margin: clamp(40px, 8vw, 60px) auto;
    padding: clamp(28px, 5vw, 48px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-med);
}

.admin-wrapper .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(28, 20, 16, 0.07);
    flex-wrap: wrap;
}

.admin-item-name {
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 140px;
}

.admin-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.92rem;
    user-select: none;
    padding: 6px 4px;
}

.admin-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.admin-actions {
    text-align: center;
    margin-top: 36px;
}

.admin-actions .btn { width: 100%; max-width: 320px; font-size: 1.05rem; }

.status-msg {
    margin-top: 18px;
    font-weight: 500;
    text-align: center;
    min-height: 1.5em;
}
.status-msg.success { color: #15803d; }
.status-msg.error   { color: var(--danger); }
.status-msg.info    { color: var(--text-muted); }

.admin-back {
    text-align: center;
    margin-top: 20px;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(28, 20, 16, 0.15);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(28, 20, 16, 0.04);
    border-color: var(--text);
}

.admin-loading,
.admin-error {
    text-align: center;
    padding: 32px 0;
    color: var(--text-muted);
}
.admin-error { color: var(--danger); }
