/* ==========================================================================
   Pnishi · Balkan Grill — Zentrale Einstiegsseite (Location Splitter)
   Design-System identisch zu den Standort-Seiten (Marbach / Winnenden).
   ========================================================================== */

/* ==========================================================================
   Lokale Schriften – DSGVO-konform
   Variable Fonts, komplett aus dem Projektverzeichnis. Keine externen CDNs.
   ========================================================================== */
@font-face {
  font-family: 'Lora';
  src: url('./assets/fonts/lora-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  src: url('./assets/fonts/lora-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --clr-brand:        #C8251A;
  --clr-brand-dark:   #9E1A10;
  --clr-brand-light:  #E03428;
  --clr-gold:         #C8251A;
  --clr-gold-light:   #E03428;
  --clr-dark:         #000000;
  --clr-dark-2:       #0A0A0A;
  --clr-dark-3:       #141414;
  --clr-cream:        #0A0A0A;
  --clr-cream-2:      #111111;
  --clr-cream-3:      #1A1A1A;
  --clr-white:        #ffffff;
  --clr-text:         #F2E8E0;
  --clr-text-mid:     #C0A090;
  /* auf 4,9:1 aufgehellt – der alte Wert #7A5A50 lag mit 3,2:1 unter WCAG AA */
  --clr-text-light:   #A08278;
  --clr-border:       rgba(255,255,255,0.08);
  --clr-border-dark:  rgba(255,255,255,0.16);
  --clr-wowobot:      #22b8e0;

  --clr-lieferando:   #FF8000;
  --clr-uber:         #06C167;

  /* Markenrot bleibt fuer Flaechen; kleine Texte auf Schwarz brauchen den
     helleren Ton, sonst nur 3,5:1 Kontrast. */
  --clr-brand-text:   #FF5A4A;

  --font-heading: 'Lora', Georgia, 'Palatino Linotype', Palatino, serif;
  --font-body:    'Inter', 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.35s;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.10);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.16);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.24);
  --shadow-brand: 0 8px 32px rgba(200,37,26,0.38);

  --nav-h:       72px;
  --max-w:       1100px;
  --max-w-text:  780px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Verhindert, dass der fixierte Header bei Ueberbreite mitwaechst. */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-dark);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
address { font-style: normal; }

a {
  color: var(--clr-brand-text);
  text-decoration: none;
  transition: color var(--duration) var(--ease-inout);
}
a:hover { color: var(--clr-white); }

:focus-visible {
  outline: 3px solid var(--clr-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text);
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

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

/* ==========================================================================
   Layout utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(4rem, 10vw, 7rem); }

.section-header {
  text-align: center;
  max-width: var(--max-w-text);
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-brand-text);
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--clr-text-mid); font-size: 1.05rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration) var(--ease-inout),
              color var(--duration) var(--ease-inout),
              border-color var(--duration) var(--ease-inout),
              transform 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out);
  min-height: 48px;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }

.btn-primary {
  background: var(--clr-brand);
  color: var(--clr-white);
  border-color: var(--clr-brand);
  box-shadow: var(--shadow-brand);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--clr-brand-dark);
    border-color: var(--clr-brand-dark);
    box-shadow: 0 12px 40px rgba(200,37,26,0.35);
    color: var(--clr-white);
  }
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; min-height: 56px; }
.btn-full { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-border);
}
.nav-container {
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; color: var(--clr-text); }
.logo-flame { color: var(--clr-brand); display: inline-flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--clr-white);
}
.logo-sub {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text-mid);
}


/* ==========================================================================
   Hero
   ========================================================================== */


.hero-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-brand);
  box-shadow: 0 0 0 4px rgba(200,37,26,0.25);
}


@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ==========================================================================
   Location Splitter
   ========================================================================== */
.locations-section {
  position: relative;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(200,37,26,0.10), transparent 70%),
    var(--clr-dark);
}

/* Splitter sitzt ganz oben – komplett ohne Scrollen, vertikal zentriert */
.locations-section--top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(0.75rem, 2vw, 1.5rem));
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}
.locations-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 380px at 18% 8%, rgba(200,37,26,0.18), transparent 70%),
    radial-gradient(620px 380px at 85% 0%, rgba(224,52,40,0.12), transparent 70%);
}
.locations-section--top .container { position: relative; z-index: 1; }

.locations-section--top .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.locations-section--top .hero-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-brand);
  box-shadow: 0 0 0 4px rgba(200,37,26,0.25);
}
.locations-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--clr-white); margin-bottom: 0.6rem; }
.section-tag { margin-bottom: 0.65rem; }
.locations-section--top .section-desc { font-size: 0.98rem; }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 920px;
  margin-inline: auto;
}

.location-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-dark-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-inout),
              box-shadow var(--duration) var(--ease-out);
}
@media (hover: hover) {
  .location-card:hover {
    transform: translateY(-6px);
    border-color: var(--clr-border-dark);
    box-shadow: var(--shadow-lg);
  }
}

.location-media { position: relative; height: clamp(150px, 22vh, 230px); overflow: hidden; }
.location-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) { .location-card:hover .location-img { transform: scale(1.05); } }
.location-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85) 100%);
}
.location-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: var(--clr-brand);
  color: var(--clr-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-brand);
}

.location-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
}
.location-name { color: var(--clr-white); }
.location-address {
  color: var(--clr-text-mid);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.location-cta { margin-top: 0.15rem; }

.location-order-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-text-light);
}
.location-order-label svg { color: var(--clr-brand-text); flex-shrink: 0; }

/* Standort ohne Lieferdienst: reine Info-Zeile statt Liefer-Buttons */
.location-order-label--info {
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--clr-text-mid);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ----- Lieferdienst-Buttons ----- */
.order-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
/* Zwei Buttons nebeneinander brauchen mindestens ~360px, sonst ragt
   "Lieferando" aus dem Viewport. */
@media (max-width: 379px) {
  .order-buttons { grid-template-columns: 1fr; }
}
.order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border-dark);
  background: var(--clr-dark-3);
  color: var(--clr-white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease-out),
              border-color var(--duration) var(--ease-inout),
              background var(--duration) var(--ease-inout);
}
.order-btn-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--clr-lieferando);
}
.order-btn-logo--uber {
  width: auto;
  padding-inline: 6px;
  font-size: 0.8rem;
  border-radius: 6px;
  background: var(--clr-uber);
}
/* Social-Buttons */
.order-btn--facebook { width: 100%; }
.order-btn-logo--fb {
  width: 26px; height: 26px;
  background: #1877F2;
  color: #fff;
}
.order-btn--instagram { width: 100%; }
.order-btn-logo--ig {
  width: 26px; height: 26px;
  color: #fff;
  background: radial-gradient(circle at 30% 110%, #FED576 0%, #F47133 25%, #BC3081 50%, #4C63D2 100%);
}
@media (hover: hover) {
  .order-btn--lieferando:hover {
    transform: translateY(-2px);
    border-color: var(--clr-lieferando);
    background: rgba(255,128,0,0.12);
    color: #fff;
  }
  .order-btn--uber:hover {
    transform: translateY(-2px);
    border-color: var(--clr-uber);
    background: rgba(6,193,103,0.12);
    color: #fff;
  }
  .order-btn--facebook:hover {
    transform: translateY(-2px);
    border-color: #1877F2;
    background: rgba(24,119,242,0.12);
    color: #fff;
  }
  .order-btn--instagram:hover {
    transform: translateY(-2px);
    border-color: #BC3081;
    background: rgba(188,48,129,0.12);
    color: #fff;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--clr-dark-2);
  border-top: 1px solid var(--clr-border);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.logo-light .logo-name { color: var(--clr-white); }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-desc { color: var(--clr-text-mid); font-size: 0.95rem; max-width: 360px; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text-light);
  margin-bottom: 1rem;
}
/* min-height: 44px Touch-Flaeche statt der reinen Textzeile */
.footer-nav a, .footer-legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--clr-text);
  font-size: 0.95rem;
}
.footer-nav a:hover, .footer-legal-nav a:hover { color: var(--clr-brand-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
}
.footer-copy { color: var(--clr-text-light); font-size: 0.85rem; }
.powered-by { color: var(--clr-text-light); font-size: 0.85rem; }
/* Markenvorgabe: "wowobot" in #22b8e0 */
.powered-by a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--clr-wowobot);
  font-weight: 600;
}
.powered-by a:hover { color: var(--clr-wowobot); opacity: 0.8; }

/* ==========================================================================
   Reveal-Animation
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  .locations-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
