/*
Theme Name: Deichpassage Friedrichskoog
Theme URI: https://deichpassage.de/
Author: Deichpassage
Description: Modernes Nordsee-Landingpage-Theme für die Deichpassage Friedrichskoog – Gastronomie, Shopping & Information. Eigenentwicklung ohne externe Frameworks.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deichpassage
*/

/* =========================================================
   Design-Tokens
   ========================================================= */
:root {
  --nordsee:      #14506b;  /* tiefes Nordsee-Blau   */
  --nordsee-dk:   #0e3a4e;  /* dunkler Headerton     */
  --see:          #2f86a6;  /* helleres Seeblau      */
  --sand:         #f7f1e6;  /* Sand / Hintergrund    */
  --sand-2:       #efe6d4;  /* Sand etwas tiefer     */
  --backstein:    #b5532f;  /* Backstein-Rot Akzent  */
  --backstein-dk: #97431f;
  --tinte:        #1f2d35;  /* Text dunkel           */
  --grau:         #5a6b72;  /* Text gedämpft         */
  --weiss:        #ffffff;
  --linie:        rgba(20, 80, 107, .14);
  --schatten:     0 18px 40px -20px rgba(15, 58, 78, .45);
  --schatten-sm:  0 8px 24px -14px rgba(15, 58, 78, .5);
  --radius:       18px;
  --radius-sm:    12px;
  --bund:         1180px; /* max. Inhaltsbreite */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   Reset / Basis
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--tinte);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nordsee); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--bund); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--sand { background: var(--sand-2); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--backstein); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--grau); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--backstein); color: var(--weiss); box-shadow: var(--schatten-sm); }
.btn--primary:hover { background: var(--backstein-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn--dark { background: var(--nordsee); color: var(--weiss); box-shadow: var(--schatten-sm); }
.btn--dark:hover { background: var(--nordsee-dk); transform: translateY(-2px); }

/* =========================================================
   Hinweis-Banner (Website im Aufbau)
   ========================================================= */
.dev-banner {
  background: var(--backstein); color: #fff;
  text-align: center; font-size: .85rem; font-weight: 600; line-height: 1.4;
  padding: .55rem 1rem; display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.dev-banner span { font-size: 1rem; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--nordsee); font-size: 1.15rem; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--see), var(--nordsee));
  display: grid; place-items: center; color: #fff; box-shadow: var(--schatten-sm);
}
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--backstein); }
.brand__logo { height: 46px; width: auto; display: block; }
.footer__logo { height: 50px; width: auto; display: block; }
@media (max-width: 760px) { .brand__logo { height: 38px; } }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--tinte); font-weight: 600; font-size: .98rem; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--backstein); transition: width .2s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: .4rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--nordsee); margin: 5px auto; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; color: var(--weiss); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14,58,78,.62), rgba(14,58,78,.78)),
    var(--hero-img, linear-gradient(135deg, #1d6f8f, #14506b 60%, #0e3a4e));
  background-size: cover; background-position: center;
}
.hero__inner { padding: clamp(5rem, 13vw, 9rem) 0 clamp(4rem, 9vw, 7rem); max-width: 760px; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,.92); max-width: 52ch; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.hero__tags li {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; color: var(--sand); }
.hero__wave svg { width: 100%; height: 60px; display: block; }

/* =========================================================
   Intro
   ========================================================= */
.intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.intro__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.fact {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--schatten-sm);
}
.fact strong { display: block; font-size: 1.9rem; color: var(--nordsee); font-weight: 800; line-height: 1; }
.fact span { font-size: .92rem; color: var(--grau); }

/* =========================================================
   Angebote (Karten)
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.card {
  background: var(--weiss); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--linie); box-shadow: var(--schatten-sm);
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--schatten); }
.card__top { height: 8px; background: var(--accent, var(--see)); }
.card__body { padding: 1.6rem; flex: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--see)) 14%, #fff); color: var(--accent, var(--see));
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--grau); margin: 0; }
.card ul { margin: .9rem 0 0; padding-left: 1.1rem; color: var(--grau); font-size: .95rem; }
.card ul li { margin-bottom: .25rem; }

/* =========================================================
   Galerie
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.gallery figure {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative;
  aspect-ratio: 4 / 3; background: var(--sand-2); border: 1px solid var(--linie);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: var(--grau); font-size: .85rem; padding: 1rem;
  background: repeating-linear-gradient(45deg, var(--sand-2), var(--sand-2) 12px, #e7dcc6 12px, #e7dcc6 24px);
}
.gallery figure.span-2 { grid-column: span 2; aspect-ratio: 8 / 3; }

/* =========================================================
   Grundriss / Lageplan
   ========================================================= */
.plan {
  margin: 2.6rem auto 0; max-width: 860px;
  background: var(--weiss); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten-sm);
  padding: clamp(1rem, 3vw, 2rem);
}
.plan svg { width: 100%; height: auto; display: block; }
.plan .plan-lbl { fill: var(--tinte); font-weight: 700; font-size: 18px; }
.plan .plan-sub { fill: var(--grau); font-size: 13px; }
.plan .plan-tag { font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.plan .u .unit { transition: filter .2s ease, transform .2s ease; transform-box: fill-box; transform-origin: center; }
.plan .u:hover .unit { filter: brightness(.97); }
.plan__legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.6rem;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--linie);
  font-size: .92rem; font-weight: 600; color: var(--tinte);
}
.plan__legend span { display: inline-flex; align-items: center; gap: .5rem; }
.plan__legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.plan__note { text-align: center; color: var(--grau); font-size: .85rem; margin: .9rem 0 0; }

/* =========================================================
   Anfahrt / Kontakt
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: stretch; }
.info-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.info-list li { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--linie); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { color: var(--backstein); flex: 0 0 auto; margin-top: .15rem; }
.info-list strong { display: block; }
.info-list span { color: var(--grau); }
.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie);
  box-shadow: var(--schatten-sm); min-height: 340px; height: 100%;
}
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--nordsee-dk); color: rgba(255,255,255,.85); padding: 3rem 0 1.5rem; }
.site-footer .brand { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; transition: background .2s ease;
}
.social a:hover { background: var(--backstein); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; font-size: .88rem;
}
.footer__bottom a { color: rgba(255,255,255,.82); }
.footer__credit a { color: #fff; font-weight: 600; }
.footer__credit a:hover { color: var(--backstein); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .intro__grid, .contact__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--weiss); border-bottom: 1px solid var(--linie); padding: .5rem 1.1rem 1.2rem;
    box-shadow: var(--schatten-sm); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--linie); }
  .nav__links a { display: block; padding: .9rem 0; }
  .nav__cta { margin: .8rem 0 0; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .gallery figure.span-2 { grid-column: span 1; aspect-ratio: 4/3; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Zugänglichkeit */
:focus-visible { outline: 3px solid var(--see); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--nordsee); color: #fff;
  padding: .7rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
