/* Restaurante Porto — porto.hamburg */
:root {
  --brown: #7a5230;      /* Logo-Braun */
  --brown-dark: #4a3118; /* Navigation/Footer wie Altseite */
  --accent: #8f4a0e;     /* Lampen-Orange, abgedunkelt auf 4,5:1 gegen Sand (WCAG AA) */
  --sand: #ead7ab;       /* Alter Seitenhintergrund */
  --paper: #ffffff;
  --ink: #3a2d1c;
  --ink-soft: #6b5a41;
  --line: #d9c69a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--brown-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; margin-bottom: .4em; }

p + p { margin-top: 1em; }

a { color: var(--brown); }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

/* Header */
.site-header {
  background: var(--brown-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.brand { display: block; }
.brand img { filter: brightness(0) invert(.93) sepia(.15); }
.brand img { height: 64px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: .1rem .35rem; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  color: #e6d8b7;
  font-size: .92rem;
  padding: .35rem .55rem;
  border-radius: 4px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.header-cta {
  color: var(--brown-dark);
  background: #fff;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  padding: .35rem .55rem;
  border-radius: 4px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--sand); }
.nav-toggle { display: none; background: none; border: none; color: #e6d8b7; cursor: pointer; padding: .5rem; line-height: 0; }

/* Hero (home) */
.hero { position: relative; color: #fff; background: var(--brown-dark); }
.hero > img { width: 100%; height: min(78vh, 40rem); object-fit: cover; opacity: .42; }
.hero-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 1.5rem;
}
.hero-text h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero-text p { font-size: clamp(1rem, 2.5vw, 1.3rem); max-width: 34em; text-shadow: 0 1px 12px rgba(0,0,0,.6); margin-top: .75rem; }
.hero-text .btn { margin-top: 1.75rem; background: #fff; color: var(--brown-dark); }
.hero-text .btn:hover { background: var(--sand); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--brown-dark); }
.btn.ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn.ghost:hover { background: rgba(0,0,0,.06); }

/* Sections */
section, .page-main { padding: 3.5rem 0; }
.page-main { min-height: 50vh; padding-top: 1.5rem; }
.page-title { padding: 3rem 0 0; }
.page-title .kicker, .kicker {
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .5rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 50rem) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: 6px; }

.tiles { display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.tile:hover { border-color: var(--brown); }
.tile h3 { color: var(--brown-dark); }
.tile p { color: var(--ink-soft); font-size: .95rem; }
.tile .more { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* Info strip */
.info-strip { background: var(--brown-dark); color: #eddfbe; }
.info-strip .wrap { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 44rem) { .info-strip .wrap { grid-template-columns: repeat(3, 1fr); } }
.info-strip h3 { color: #fff; }
.info-strip a { color: var(--sand); }

/* Menu lists */
.menu-section { margin-top: 2.8rem; }
.menu-section > h2 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: .3rem;
}
.dish { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 1.3rem; }
.dish-name { font-weight: 600; font-family: var(--serif); font-size: 1.1rem; color: var(--brown-dark); }
.dish-price { white-space: nowrap; font-weight: 600; color: var(--accent); }
.dish-de { color: var(--ink); }
.dish-note { color: var(--ink-soft); font-size: .92rem; }
.menu-hint { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--paper); border-left: 3px solid var(--accent); color: var(--ink-soft); font-size: .95rem; }

/* Wine list */
.wine { margin-top: 1.4rem; }
.wine-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.wine-prices { white-space: nowrap; font-weight: 600; color: var(--accent); font-size: .95rem; }
.wine-meta { color: var(--ink-soft); font-size: .9rem; }

/* Forms */
form .form-row { margin-top: 1.1rem; }
form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; color: var(--brown-dark); }
form input, form select, form textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font: inherit;
  color: inherit;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--brown); outline-offset: 1px; }
form textarea { min-height: 7rem; resize: vertical; }
.form-grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 34rem) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-msg { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 4px; }
.form-msg.ok { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brown); }
.form-msg.err { background: #f7e6e0; border: 1px solid #d29a86; }
.field-err { color: #a03518; font-size: .85rem; margin-top: .25rem; display: none; }
input:user-invalid + .field-err { display: block; }
.time-note { margin-top: .75rem; color: var(--ink-soft); font-size: .92rem; }

/* Footer */
.site-footer { background: var(--brown-dark); color: #d9c9a6; margin-top: 4rem; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
@media (min-width: 44rem) { .site-footer .wrap { grid-template-columns: repeat(3, 1fr); } }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; font-size: .85rem; }

/* Generationen (Über uns) */
.gen { display: grid; gap: 1.5rem 2.5rem; margin-top: 3rem; align-items: start; }
@media (min-width: 40rem) { .gen { grid-template-columns: 200px 1fr; } }
.gen figure { margin: 0; }
.gen figure img { border-radius: 6px; border: 4px solid var(--paper); box-shadow: 0 1px 8px rgba(74,49,24,.25); width: 100%; max-width: 200px; }
.gen figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
.gen .era { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* Karten-Embed (2-Klick, DSGVO) */
.map-embed { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); margin-top: 3rem; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 1.5rem; }
.map-placeholder p { font-size: .9rem; color: var(--ink-soft); max-width: 30em; }

/* Reservierung: Formular + einladende Seite */
.res-grid { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .res-grid { grid-template-columns: 5fr 4fr; align-items: start; } }
.res-form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.75rem; }
.res-side .photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.res-side .photo-stack img { border-radius: 6px; width: 100%; height: 9rem; object-fit: cover; }
.res-side .photo-stack img.wide { grid-column: 1 / -1; height: 13rem; }
.res-side .side-note { margin-top: 1.5rem; background: var(--paper); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 1.1rem 1.3rem; font-size: .95rem; }


/* Sprachumschalter (Dropdown) */
.lang-switch { margin-left: .5rem; }
.lang-switch select {
  width: auto;
  border: none;
  background: transparent;
  color: #e6d8b7;
  font: inherit;
  font-size: .92rem;
  padding: .35rem .55rem;
  cursor: pointer;
}
.lang-switch select:hover, .lang-switch select:focus { color: #fff; }

/* Kompakter Header auf schmalen Screens: Burger links, Logo mittig, Reservieren rechts */
@media (max-width: 44rem) {
  .site-header .wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .25rem .5rem;
  }
  .nav-toggle { display: block; grid-row: 1; grid-column: 1; }
  .brand { justify-self: center; grid-row: 1; grid-column: 2; }
  .brand img { height: 52px; }
  .header-cta { grid-row: 1; grid-column: 3; }
  /* Menü als Overlay unter dem Header, überlagert den Inhalt */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brown-dark);
    border-bottom: 1px solid var(--brown-dark);
    /* negativer Spread: Schatten nur unten, nicht seitlich */
    box-shadow: 0 18px 24px -14px rgba(58, 45, 28, .35);
    flex-direction: column;
    gap: 0;
    padding: .25rem 1.25rem .75rem;
    margin-left: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: .7rem .5rem; font-size: 1rem; color: #e6d8b7; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0; }
  .site-nav a:first-child { border-top: none; }
  .site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .site-nav a[aria-current="page"] { color: #fff; text-decoration-color: var(--sand); }
  .lang-switch { margin: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: .35rem 0 0; }
  .lang-switch select { color: #e6d8b7; }
}

/* Logo im Hero */
.hero-logo { height: 176px; width: auto; filter: brightness(0) invert(.93) sepia(.15); margin-bottom: 1rem; }

/* Breite Inhaltsbilder auf Desktop bändigen */
.banner-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 6px; }

/* Kontakt: drei gleich hohe Karten nebeneinander statt 2+1 */
.contact-tiles { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .contact-tiles { grid-template-columns: repeat(3, 1fr); } }

/* Eingestreute Bilder in der Speisekarte */
.menu-img { display: block; max-width: 26rem; width: 100%; margin: 1.5rem auto 0; border-radius: 6px; }

/* Kacheln mit Bild */
.tile.has-img { padding: 0; overflow: hidden; }
.tile.has-img > img { width: 100%; height: 9.5rem; object-fit: cover; }
.tile.has-img .tile-body { padding: 1.2rem 1.6rem 1.5rem; }

/* Zwei Fotos nebeneinander (Kontakt); mobil untereinander in voller Höhe */
.photo-pair { display: grid; gap: 1rem; }
.photo-pair img { width: 100%; border-radius: 6px; }
@media (min-width: 40rem) {
  .photo-pair { grid-template-columns: 1fr 1fr; }
  .photo-pair img { height: 15rem; object-fit: cover; }
}
