/* Logopädische Praxis Petra Jokel — Website Styles */

/* Lokal gehostete Schriften — Cormorant Garamond & DM Sans (SIL Open Font License) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-400-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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-500-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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600-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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-300-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-300-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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-400-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;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-500-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;
}

:root {
  --red: #8b1a1a;
  --red-dark: #6e1515;
  --red-light: rgba(139, 26, 26, 0.08);
  --red-border: rgba(139, 26, 26, 0.12);
  --bg: #f7f5f2;
  --bg-raised: #f0ece6;
  --text: #3a3632;
  --text-light: #6b6560;
  --text-faint: #9a9590;
  --max-width: 1000px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  border-left: 6px solid var(--red);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

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

/* ───────── NAV ───────── */
.nav {
  position: fixed;
  top: 0; left: 6px; right: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(139, 26, 26, 0.08);
}

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--red);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--red);
}

.nav-toggle svg { width: 22px; height: 22px; }

/* ───────── HERO ───────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 48px 80px;
}

.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

/* Per-line frosted scrim.
   Each .scrim-line is a centered flex container with two children:
   - .scrim-bg: absolutely-positioned layer owning blur+mask, sized to text
   - .scrim-text: the text itself, on top, completely clean
   This keeps blur strictly behind text and feather only on the background. */
.hero-content--scrim .scrim-line {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
  position: relative;
}
.hero-content--scrim .scrim-line:last-of-type { margin-bottom: 0; }

.hero-content--scrim .scrim-text {
  position: relative;
  z-index: 1;
  padding: 6px 20px;
  margin: 0;
  display: inline-block;
  max-width: 100%;
}

.hero-content--scrim .scrim-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  /* Match the padding box of the sibling text via margin — text has padding
     6px 20px, so the background extends to those bounds */
  pointer-events: none;
  background: rgba(247, 245, 242, 0.55);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

/* Constrain background to hug the text using display:contents isn't possible
   with absolute positioning; instead, make scrim-line shrink-wrap by using
   width: max-content on the line itself */
.hero-content--scrim .scrim-line {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-content--scrim .scrim-line--wide {
  width: min(100%, 720px);
}

.hero-content--scrim .scrim-line--wide .scrim-text { padding: 10px 24px; }

.micro-label {
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
  font-weight: 300;
}

.hero-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 8px;
  white-space: nowrap;
}

.hero-title {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.4;
  border: none;
  margin: 28px auto;
}

.hero-welcome {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--red);
  line-height: 1.25;
  margin-bottom: 20px;
  text-wrap: pretty;
}

.hero-desc {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.85;
  letter-spacing: 0.3px;
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}

.btn {
  display: inline-block;
  margin-top: 36px;
  padding: 13px 40px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: var(--red);
  color: var(--bg);
}

/* ───────── SECTIONS ───────── */
section {
  scroll-margin-top: 80px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 48px;
}

.section-raised {
  background: var(--bg-raised);
  max-width: none;
  padding: 100px 0;
}

.section-raised .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 400;
}

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--red);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-rule {
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.35;
  border: none;
  margin: 24px 0 32px;
}

.lead {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.85;
  max-width: 720px;
  margin-bottom: 32px;
  text-wrap: pretty;
}

/* ───────── ABOUT ───────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-grid p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 16px;
  text-wrap: pretty;
}

.portrait-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.portrait-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ───────── SERVICES ───────── */
.group-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--text);
  line-height: 1.25;
  margin-top: 80px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--red-border);
}

.group-heading:first-of-type { margin-top: 8px; }

/* Extra breathing room before the second group ("Erwachsenenalter") */
.services-grid + .group-heading { margin-top: 96px; }

.service-card {
  padding: 22px 20px;
  background: #e8e4df;
  border-top: 1px solid rgba(139, 26, 26, 0.18);
  position: relative;
  transition: background 0.3s ease;
}

.service-card:hover {
  background: #ece8e3;
}

.card-wave-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.75;
}

/* ───────── CONTACT ───────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.info-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
  margin-bottom: 6px;
  margin-top: 24px;
}

.info-label:first-child { margin-top: 0; }

.info-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.info-value a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 26, 26, 0.25);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.info-value a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.map-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--red-border);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* slight filter to blend with warm palette */
  filter: grayscale(0.15) sepia(0.08);
}

.map-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  background: var(--bg-raised);
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-faint);
  text-align: center; padding: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.map-placeholder:hover { background: #ebe6df; }

.map-placeholder .ph-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; letter-spacing: 0; text-transform: none;
  color: var(--red); font-weight: 500;
}

.map-placeholder .ph-note {
  font-size: 11px; letter-spacing: 1.5px; max-width: 280px;
  line-height: 1.7; color: var(--text-light);
  text-transform: none;
}

.map-consent-btn {
  margin-top: 4px;
  padding: 10px 28px;
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.map-consent-btn:hover { background: var(--red); color: var(--bg); }

/* ───────── FOOTER ───────── */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 48px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(139, 26, 26, 0.1);
  flex-wrap: wrap;
  gap: 16px;
}

.footer span,
.footer a {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover { color: var(--red); }

.footer-links { display: flex; gap: 24px; }

/* ───────── LEGAL PAGES ───────── */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 48px 80px;
}

.legal h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 44px);
  color: var(--red);
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal h2 {
  font-size: 22px;
  color: var(--text);
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 12px;
}

.legal h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--red);
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal ul { padding-left: 0; list-style: none; margin-bottom: 14px; }

.legal li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.legal li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 1px;
  background: var(--red);
}

.legal a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 26, 26, 0.25);
  transition: color 0.3s ease;
}

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

.back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-border);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.back-link:hover { border-bottom-color: var(--red); }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 768px) {
  body { border-left-width: 4px; }

  .nav { padding: 14px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(247, 245, 242, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 26, 26, 0.1);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(139, 26, 26, 0.08); }
  .nav-links a { display: block; padding: 14px 0; }

  .hero { padding: 100px 24px 60px; }
  .section { padding: 70px 24px; }
  .section-raised { padding: 70px 0; }
  .section-raised .section-inner { padding: 0 24px; }

  .about-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid { gap: 12px; }

  .portrait-box { max-width: 360px; margin: 0 auto; }

  .group-heading {
    border-bottom: none;
    margin-top: 56px;
    padding-bottom: 0;
  }
  .services-grid + .group-heading { margin-top: 56px !important; }
  .service-card { border-top: none; }
  .service-card:first-child { border-top: none; }

  .footer { padding: 24px 24px 36px; flex-direction: column; text-align: center; }

  .legal { padding: 110px 24px 60px; }

  /* Tweaks panel mobile — shrink and keep clear of bottom */
  #tweaks-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; }

  /* Hero scrim mobile — tighter padding, constrain width */
  .hero-content--scrim .scrim-inner { padding: 5px 14px; }
  .hero-content--scrim .scrim-line--wide .scrim-inner { padding: 8px 16px; max-width: 100%; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 17px; }
  .hero { padding: 90px 20px 50px; }
}
