/* =========================================================
   Liebe dein Veedel e.V. - Shared Stylesheet
   Verwendet von: index.html, impressum.html, datenschutz.html
   ========================================================= */


/* =========================================================
   Fonts - lokal, DSGVO-konform
   ========================================================= */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal; font-weight: 400;
  src: url('../fonts/playfair-display-v40-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal; font-weight: 500;
  src: url('../fonts/playfair-display-v40-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: italic; font-weight: 500;
  src: url('../fonts/playfair-display-v40-latin_latin-ext-500italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal; font-weight: 600;
  src: url('../fonts/playfair-display-v40-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal; font-weight: 700;
  src: url('../fonts/playfair-display-v40-latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal; font-weight: 400;
  src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal; font-weight: 500;
  src: url('../fonts/inter-v20-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal; font-weight: 600;
  src: url('../fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}


/* =========================================================
   Tokens
   ========================================================= */
:root {
  --navy: #13487B;
  --navy-hover: #0F3A64;
  --red: #E30613;
  --red-soft: #FF6B6B;
  --cream: #FAF5EC;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --rule: #E8E1D3;
  --rule-dark: rgba(255,255,255,0.18);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1200px;
  --pad-x: clamp(20px, 4vw, 40px);

  --radius: 4px;
  --nav-h: 64px;
}


/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}


/* =========================================================
   Eyebrow
   ========================================================= */
.eyebrow-tag {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-eyebrow {
  display: inline-block;
  color: var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
}
.italic-red {
  font-style: italic;
  color: var(--red);
}


/* =========================================================
   Navigation (Sticky, mit Logo)
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  background: rgba(250, 245, 236, 0.96);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid rgba(19, 72, 123, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 2px 8px rgba(19, 72, 123, 0.04);
  z-index: 100;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.nav.is-scrolled {
  border-bottom-color: rgba(19, 72, 123, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 4px 18px rgba(19, 72, 123, 0.1);
}
.nav__inner {
  max-width: calc(var(--container) + 60px);
  height: var(--nav-h);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
}
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  width: 40px;
  height: 40px;
  color: var(--navy);
  flex-shrink: 0;
}
.nav__brand-text { white-space: nowrap; }
.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
}
.nav__links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
}
.nav__links a:hover { text-decoration: none; color: var(--navy-hover); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--navy); transform: scaleX(0);
  transform-origin: left; transition: transform 200ms ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}
.nav__toggle svg { width: 22px; height: 22px; }


/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__text { min-width: 0; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(56px, 10vw, 136px);
  margin-top: 24px;
  margin-bottom: 28px;
}
.hero__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 42ch;
  margin: 0 0 32px;
}
.hero__meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.hero__meta .dot { margin: 0 12px; color: var(--rule); }
.hero__logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  justify-self: end;
  color: var(--navy);
}


/* =========================================================
   Section: Was wir tun
   ========================================================= */
.what {
  padding-block: clamp(64px, 9vw, 112px);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.tile:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}
.tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tile__icon {
  width: 32px; height: 32px;
  color: var(--navy);
}
.tile__icon svg { width: 100%; height: 100%; }
.tile__num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--red);
}
.tile h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
.tile p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}


/* =========================================================
   Section: Über uns
   ========================================================= */
.about {
  padding-block: clamp(64px, 9vw, 112px);
}
.about__grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 4vw, 64px);
}
.about__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.about__body { max-width: 70ch; }
.about__quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 32px;
  text-wrap: pretty;
}
.about__text p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
}
.about__text p:last-child { margin-bottom: 0; }
.about__sign {
  display: block;
  text-align: right;
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
}


/* =========================================================
   Section: Kontakt
   ========================================================= */
.contact {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(64px, 9vw, 104px);
}
.contact .section-eyebrow { color: #FFD4A3; }
.contact h2 {
  color: var(--white);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.contact h2 em {
  color: #FFD4A3;
}
.contact__lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 40px;
  color: rgba(255,255,255,0.88);
}
.contact__divider {
  border: 0;
  border-top: 1px solid var(--rule-dark);
  margin: 0 0 32px;
}
.contact__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 720px;
}
.contact__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  text-decoration: none;
}
.contact__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__link svg { width: 22px; height: 22px; flex-shrink: 0; }


/* =========================================================
   Footer — visuelle Klammer mit Header
   ========================================================= */
.footer {
  background: var(--cream);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 32px;
  border-top: 1px solid rgba(19, 72, 123, 0.14);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.4) inset;
}
.footer .container {
  max-width: calc(var(--container) + 60px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 32px;
}
.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer__brand-logo {
  width: 40px;
  height: 40px;
  color: var(--navy);
  flex-shrink: 0;
}
.footer__brand-text {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 19px;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.footer__brand-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.footer__brand-meta a { color: var(--navy); }
.footer__icons {
  display: flex;
  gap: 10px;
}
.footer__icons a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(19, 72, 123, 0.14);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.footer__icons a:hover {
  border-color: var(--navy);
  background: var(--white);
}
.footer__icons a:hover { text-decoration: none; }
.footer__icons svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid rgba(19, 72, 123, 0.14);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom-nav {
  display: flex;
  gap: 24px;
}
.footer__bottom-nav a { color: var(--muted); }
.footer__bottom-nav a:hover { color: var(--navy); }


/* =========================================================
   Legal Pages (Impressum, Datenschutz)
   ========================================================= */
.legal {
  padding-block: clamp(48px, 7vw, 80px);
  background: var(--white);
}
.legal__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 16px;
}
.legal__stand {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 40px;
}
.legal__notice {
  background: var(--cream);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  margin: 0 0 40px;
  font-size: 15px;
  color: var(--ink);
}
.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.legal p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.legal__address {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
}
.legal a { text-decoration: underline; text-underline-offset: 3px; }


/* =========================================================
   Responsive: Tablet
   ========================================================= */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo {
    max-width: 220px;
    justify-self: center;
    margin-top: 16px;
  }
  .about__grid { grid-template-columns: 1fr; gap: 12px; }
}


/* =========================================================
   Nav: Hamburger ab 860px (früher als der normale Mobile-Breakpoint)
   Damit Header zwischen 640-960px nicht overflow läuft
   ========================================================= */
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    background: var(--cream);
    padding: 24px 32px 32px;
    gap: 20px;
    transform: translateY(calc(-100% - 40px));
    visibility: hidden;
    transition: transform 220ms ease;
    z-index: 99;
  }
  .nav__links.is-open {
    transform: translateY(var(--nav-h));
    visibility: visible;
    box-shadow: 0 8px 24px rgba(19, 72, 123, 0.08);
    border-bottom: 1px solid rgba(19, 72, 123, 0.14);
  }
  .nav__links a { font-size: 18px; padding: 6px 0; }
  .nav__brand-text {
    max-width: calc(100vw - 140px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* =========================================================
   Responsive: Mobile
   ========================================================= */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .nav__inner {
    padding-inline: 14px;
    gap: 12px;
  }
  .nav__brand { gap: 10px; font-size: 16px; }
  .nav__logo { width: 32px; height: 32px; }
  .nav__brand-text {
    font-size: 15px;
  }

  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(44px, 14vw, 68px); margin-top: 16px; margin-bottom: 20px; }
  .hero__lead { font-size: 17px; margin-bottom: 24px; }
  .hero__meta { font-size: 12px; }
  .hero__meta .dot { margin: 0 8px; }
  .hero__logo { max-width: 180px; margin-top: 8px; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }
  .section-head .section-eyebrow {
    margin-bottom: 0;
    line-height: 1.1;
  }
  .section-head h2 {
    font-size: clamp(36px, 10vw, 56px);
    line-height: 1.05;
  }

  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { padding: 22px 22px 24px; }
  .tile h3 { font-size: 20px; }

  .about { padding-block: 56px; }
  .about__quote { font-size: 22px; margin-bottom: 24px; }
  .about__text p { font-size: 16px; }

  .contact { padding-block: 56px; }
  .contact h2 { font-size: clamp(36px, 11vw, 60px); line-height: 1.05; }
  .contact__lead { font-size: 16px; margin-bottom: 28px; }
  .contact__links { grid-template-columns: 1fr; gap: 24px; }
  .contact__link { font-size: 19px; }

  .footer__top { grid-template-columns: 1fr; gap: 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__bottom-nav { flex-wrap: wrap; gap: 16px; }

  .legal h1 { font-size: 32px; }
  .legal h2 { font-size: 19px; margin-top: 32px; }
}

/* iOS Safe Area Fix — nur Safari/WebKit auf iPhone/iPad */
@supports (-webkit-touch-callout: none) {
  html {
    scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px);
  }
  .nav {
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
  @media (max-width: 860px) {
    .nav__links.is-open {
      transform: translateY(calc(var(--nav-h) + env(safe-area-inset-top, 0px)));
    }
  }
}


/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
