/* ===== Schriften (lokal eingebunden, keine externen Server) ===== */
/* Inter und Playfair Display – SIL Open Font License 1.1 */
/* Inter – latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter – latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  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;
}
/* Playfair Display – latin-ext */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/playfair-display-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display – latin */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/playfair-display-latin.woff2") format("woff2");
  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;
}

/* ===== Farben & Grundwerte ===== */
:root {
  --bg: #fdfaf4;          /* Sand / Cremeweiß */
  --bg-alt: #f3ede1;      /* etwas dunkleres Sand */
  --surface: #ffffff;
  --text: #2b2a28;
  --muted: #5f5b54;
  --sea: #2f6f8f;         /* Ostseeblau */
  --sea-light: #e3eff4;
  --accent: #e07b2a;      /* Sanddorn-Orange */
  --accent-dark: #b85f17;
  --reed: #8a6a43;        /* Reetdach-Braun */
  --border: #e4dccd;
  --error: #b3261e;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 45, 20, 0.08);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--sea); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 780px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 0.6em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font: 600 1rem var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn-ghost:hover { background: var(--sea); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 2px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--reed);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-img { width: 44px; height: auto; display: block; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5em 0.7em;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--sea); }
.nav-links .nav-cta { background: var(--sea); color: #fff; padding: 0.5em 1em; }
.nav-links .nav-cta:hover { background: #245a75; color: #fff; }
@media (max-width: 560px) {
  .nav-links li:not(:last-child) { display: none; }
  .logo { font-size: 1.25rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #2b3a44;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(72px, 12vw, 140px) 0 clamp(80px, 10vw, 130px);
  color: #fff;
}
/* Hintergrundfoto auf eigener Ebene, damit es sanft zoomen kann (Ken-Burns-Effekt) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Dunkler Verlauf von links sorgt für gut lesbaren hellen Text über dem Foto */
  background:
    linear-gradient(90deg, rgba(20, 28, 36, 0.78) 0%, rgba(20, 28, 36, 0.55) 45%, rgba(20, 28, 36, 0.15) 100%),
    linear-gradient(0deg, rgba(20, 28, 36, 0.35) 0%, transparent 40%),
    url("blick-zum-haus.jpg") center 40% / cover no-repeat;
  transform-origin: 70% 50%;
  animation: hero-zoom 24s ease-in-out infinite alternate;
}
.hero-inner {
  max-width: 1120px;
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr auto; gap: 48px; }
  .hero-logo-wrap { order: 2; }
}

/* Logo: schwebt herein und schaukelt danach leicht wie ein Schiff auf dem Wasser */
.hero-logo-wrap { animation: logo-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-logo {
  display: block;
  width: clamp(120px, 26vw, 300px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 15%;
  animation: logo-sway 6s ease-in-out 1.1s infinite;
}

/* Texte und Buttons erscheinen nacheinander */
.hero-content > * { animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-content > :nth-child(1) { animation-delay: 0.25s; }
.hero-content > :nth-child(2) { animation-delay: 0.4s; }
.hero-content > :nth-child(3) { animation-delay: 0.55s; }
.hero-content > :nth-child(4) { animation-delay: 0.7s; }

/* Hüpfender Pfeil als Hinweis zum Weiterscrollen */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-right: 3px solid rgba(255, 255, 255, 0.85);
  border-bottom: 3px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  animation: hint-bounce 2s ease-in-out 1.5s infinite;
  opacity: 0;
}

@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes logo-in {
  from { opacity: 0; transform: translateY(-30px) scale(0.85) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes logo-sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(6px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hint-bounce {
  0%, 100% { opacity: 0.85; transform: translateY(0) rotate(45deg); }
  50%      { opacity: 0.85; transform: translateY(8px) rotate(45deg); }
}

/* Wer reduzierte Bewegung eingestellt hat, sieht alles ohne Animation */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-logo, .hero-logo-wrap, .hero-content > *, .scroll-hint { animation: none; }
  .scroll-hint { opacity: 0.85; }
}
.hero h1 { color: #fff; max-width: 680px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero .eyebrow { color: #ffc78f; }
.hero-text { font-size: 1.2rem; color: rgba(255, 255, 255, 0.92); max-width: 560px; margin-bottom: 1.8em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--sea); }
.hero .btn:focus-visible { outline-color: #fff; }
@media (max-width: 640px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(20, 28, 36, 0.55) 0%, rgba(20, 28, 36, 0.75) 100%),
      url("blick-zum-haus.jpg") 35% center / cover no-repeat;
  }
}

/* ===== Sektionen ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 620px; margin-bottom: 2.2em; }
.lead { font-size: 1.2rem; }

/* Über uns */
.about-grid { display: grid; gap: 48px; margin-top: 24px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-year { font-weight: 600; color: var(--sea); font-size: 0.95rem; }
.timeline h3 { font-size: 1.2rem; margin: 0.2em 0 0.3em; }
.timeline p { color: var(--muted); margin: 0; }

/* Speisekarte */
.menu-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-category {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.menu-category h3 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sea);
  margin-bottom: 1em;
}
.menu-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
/* Beim Überfahren mit der Maus kommt das Bild etwas nach vorne */
@media (hover: hover) {
  .menu-item:hover .menu-img {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 16px 32px rgba(60, 45, 20, 0.25);
    z-index: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-img { transition: none; }
}
.menu-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: 2px dashed var(--border);
  background: var(--bg);
}
.menu-item + .menu-item { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border); }
.menu-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-item h4 { margin: 0 0 0.3em; }
.menu-item p { color: var(--muted); margin: 0; font-size: 1rem; }
.price { font-weight: 600; color: var(--accent-dark); white-space: nowrap; }

/* Formular */
.form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 4px 20px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 1rem; }
.req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sea); background: #fff; }
.field.invalid input { border-color: var(--error); background: #fdf3f2; }
.error { color: var(--error); font-size: 0.9rem; min-height: 1.4em; margin: 4px 0 8px; }
.form-note { color: var(--muted); font-size: 0.9rem; margin: 8px 0 20px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  color: var(--error);
  background: #fdf3f2;
  border-left: 4px solid var(--error);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }
.form { position: relative; }
@media (min-width: 640px) { .form .btn { width: auto; } }

.form-success {
  background: var(--sea-light);
  border-left: 5px solid var(--sea);
  border-radius: var(--radius);
  padding: 28px;
}
.form-success h3 { color: var(--sea); }
.form-success p { margin: 0; }

/* ===== Footer ===== */
.site-footer { background: #ece4d4; padding: 56px 0 24px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1.5fr 1fr; } }
.site-footer .logo { display: block; margin-bottom: 0.4em; }
.footer-title { font-weight: 600; color: var(--text); margin-bottom: 0.4em; }
.copyright { text-align: center; margin: 40px 0 0; font-size: 0.85rem; }
