/* =========================================================
   Cafe7 Laufen – Stylesheet
   Aufbau: 1. Variablen  2. Basis  3. Layout  4. Komponenten
           5. Sektionen  6. Responsive
   ========================================================= */

/* 1. Variablen --------------------------------------------- */
:root {
  --green:       #153b30;
  --green-dark:  #102f26;
  --green-text:  #123629;
  --cream:       #f7f2e7;
  --cream-dark:  #eae5d8;
  --card-bg:     #faf7ef;
  --gold:        #d8bd87;
  --ink:         #20372f;
  --muted:       #526359;
  --line:        #bdb9ae;

  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, serif;

  --header-height: 76px;
  --radius: 3px;
}

/* 2. Basis ------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  /* Einheitlicher Bildlook über alle Sektionen */
  filter: saturate(.91) contrast(1.035);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

section[id] { scroll-margin-top: var(--header-height); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 3. Layout ------------------------------------------------ */
section {
  padding: 75px max(6%, calc((100vw - 1080px) / 2));
}

section h2 {
  font: normal clamp(31px, 4vw, 46px) / 1.2 var(--font-serif);
  margin: 8px 0 20px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
}

.split img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.center { text-align: center; }

/* 4. Komponenten ------------------------------------------- */

/* Entwurfs-Hinweis (vor Livegang entfernen) */
.note {
  background: #f3e6c7;
  color: #3a3324;
  text-align: center;
  padding: 8px 15px;
  font-size: 12px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px max(5%, calc((100vw - 1180px) / 2));
  background: rgb(21 59 48 / .96);
  color: var(--cream);
  box-shadow: 0 3px 12px rgb(0 0 0 / .13);
}

.brand {
  color: var(--cream);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .035em;
  font-size: 25px;
}

.brand small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
}

.nav a:hover { text-decoration: underline; }

.menu {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / .44);
  border-radius: 5px;
  padding: 7px 11px;
  font-size: 21px;
  cursor: pointer;
}

/* Kleine Überschrift über Titeln */
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.lead {
  font-size: 18px;
  max-width: 590px;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* Angebots-Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 17px;
  margin-top: 32px;
}

.card {
  min-height: 205px;
  padding: 25px 20px 27px;
  background: var(--card-bg);
  border-top: 3px solid var(--green);
}

.card .symbol { font-size: 28px; }
.card h3 { font-size: 18px; margin: 13px 0 10px; }
.card p  { font-size: 14px; margin: 0; }

/* Drink-Galerie */
.gallery-intro {
  max-width: 650px;
  margin: 55px auto 20px;
  text-align: center;
}

.gallery-intro h3 {
  margin: 8px 0;
  color: var(--green-text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.gallery-intro p { color: var(--muted); }

.drink-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto 35px;
  padding: 0 18px;
}

.drink-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #e9e2d4;
  aspect-ratio: 4 / 5;
}

.drink-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. Sektionen --------------------------------------------- */

/* Hero */
.hero {
  padding: 0;
  background: var(--green);
  color: var(--cream);
}

.hero img {
  width: 100%;
  height: min(61vw, 620px);
  min-height: 260px;
  object-fit: cover;
  object-position: center 45%;
}

.hero-caption {
  padding: 32px 16px 41px;
  text-align: center;
}

.hero h1 {
  margin: 12px auto 10px;
  font-family: var(--font-serif);
  font-size: clamp(31px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.14;
}

.hero h1.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.hero p {
  margin: 0 0 24px;
  color: #e4ded2;
}

/* Angebot */
.offers { background: var(--cream-dark); }

/* Events */
.events {
  background: var(--green);
  color: var(--cream);
}

.events .split img { height: 360px; }

/* Kontakt */
.contact .split { align-items: start; }

.address {
  margin: 16px 0 23px;
  font-style: normal;
  font-size: 18px;
}

.address a { color: inherit; }

.hours {
  width: 100%;
  margin: 20px 0 27px;
  border-collapse: collapse;
}

.hours td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.hours td:last-child { text-align: right; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.links a {
  padding: 10px 15px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

/* Footer */
.site-footer {
  padding: 27px 14px;
  background: var(--green-dark);
  color: #ddd6c9;
  text-align: center;
  font-size: 13px;
}

/* 6. Responsive -------------------------------------------- */
@media (max-width: 760px) {
  .site-header { padding: 13px 5%; }

  .menu { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 14px;
    padding: 15px 6% 24px;
    background: var(--green);
  }

  .nav.open { display: flex; }

  .hero img      { height: 60vw; min-height: 245px; }
  .hero-caption  { padding: 28px 15px 35px; }
  .hero h1       { font-size: 35px; }

  section { padding: 55px 6%; }

  .split     { grid-template-columns: 1fr; gap: 25px; }
  .split img { height: 280px; }
  .events .split img { height: 270px; }

  .lead { font-size: 17px; }

  .cards   { gap: 11px; }
  .card    { padding: 17px 15px; min-height: 190px; }
  .card h3 { font-size: 16px; }
  .card p  { font-size: 13px; }
}

@media (max-width: 640px) {
  .drink-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 12px;
  }

  .gallery-intro {
    margin-top: 35px;
    padding: 0 18px;
  }
}

@media (max-width: 420px) {
  .card    { min-height: 0; }
  .hero h1 { font-size: 31px; }
}

/* 7. Rechtliche Seiten (Impressum, Datenschutz) ------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  margin: 8px 0 32px;
  font: normal clamp(31px, 4vw, 46px) / 1.2 var(--font-serif);
}

.legal h2 {
  margin: 36px 0 10px;
  font: 700 18px / 1.3 var(--font-sans);
}

.legal p,
.legal dl { margin: 0 0 14px; }

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
}

.legal dt { font-weight: 650; }
.legal dd { margin: 0; }

.legal a { color: var(--green); }

.legal .stand {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 520px) {
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 8px; }
}

/* 8. Kennzeichnung KI-generierter Bilder ------------------- */
.ai-figure {
  position: relative;
  margin: 0;
}

.ai-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 3px;
  background: rgb(16 47 38 / .78);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .03em;
  line-height: 1.3;
  pointer-events: none;
}
