/* Tagesmutter Langenselbold – Stylesheet
   Keine externen Schriften: runde Systemschrift (Apple) für Überschriften,
   saubere Systemschrift für Fließtext. */

:root {
  --cream: #fbf7ef;
  --cream-deep: #f4ecdd;
  --sage: #dfeadf;
  --sage-deep: #c9dccb;
  --green: #2f5d47;      /* Buttons, Links – 7.6:1 auf Creme */
  --green-dark: #234737;
  --ink: #26332c;        /* Fließtext – 12:1 auf Creme */
  --ink-soft: #46554c;   /* Nebentext – 7:1 auf Creme */
  --terra: #a9482a;      /* Akzent – 5.4:1 auf Creme, 5.6:1 mit Weiß */
  --terra-dark: #8c3a20;
  --sun: #f2c14e;        /* nur dekorativ, nie als Textfarbe */
  --white: #ffffff;

  --font-head: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", "Segoe UI", system-ui, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  --radius: 1.5rem;
  --radius-lg: 2.5rem;
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: .5rem;
}

::selection { background: var(--sun); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.btn--call { background: var(--terra); color: var(--white); }
.btn--call:hover { background: var(--terra-dark); color: var(--white); }

.btn--wa { background: var(--green); color: var(--white); }
.btn--wa:hover { background: var(--green-dark); color: var(--white); }

.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: background-color .3s var(--ease);
}
.site-header.is-scrolled { background: var(--cream-deep); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 2.25rem; height: 2.25rem; flex: none; }

.nav__list {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: block;
  padding: .6rem .85rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 1rem;
  transition: background-color .2s var(--ease);
}
.nav__list a:hover { background: var(--sage); }

.nav__toggle { display: none; }
.header-call { display: none; }

@media (min-width: 64rem) {
  .header-call { display: inline-flex; min-height: 2.75rem; padding: .55rem 1.2rem; font-size: 1rem; }
}

@media (max-width: 63.99rem) {
  .js .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .6rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--sage);
    color: var(--ink);
    font: 600 1rem var(--font-text);
    cursor: pointer;
  }
  .nav__toggle-icon { width: 1.25rem; height: 1.25rem; }
  .js .nav__list {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + .25rem);
    flex-direction: column;
    padding: .75rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px -18px rgba(38, 51, 44, .35); /* schwebendes Menü */
    opacity: 0;
    transform: translateY(-.5rem);
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .js .nav.is-open .nav__list {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .js .nav__list a { padding: .9rem 1rem; font-size: 1.125rem; }
  /* ohne JavaScript: Links als scrollbare Zeile */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .5rem; }
  html:not(.js) .nav { width: 100%; overflow-x: auto; }
}

/* ---------- Organische Trenner ---------- */

.wave { display: block; width: 100%; height: clamp(2rem, 5vw, 4.5rem); }
.wave--to-sage { color: var(--sage); background: var(--cream); }
.wave--from-sage { color: var(--sage); background: var(--cream); transform: scaleY(-1); }
.wave--to-green { color: var(--green); background: var(--cream); }
.wave path { fill: currentColor; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(1.5rem, 5vw, 4.5rem) var(--section); }

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem);
  max-width: 14ch;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.4375rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.hero__facts li {
  padding: .45rem .95rem;
  border-radius: 999px;
  background: var(--sage);
  font-size: 1rem;
  font-weight: 550;
}

.hero__media { position: relative; }
.hero__media picture {
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--sage);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__sun {
  position: absolute;
  width: clamp(4.5rem, 9vw, 7rem);
  height: auto;
  right: 2%;
  top: -2%;
  color: var(--sun);
}

@media (min-width: 52rem) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; }
}

@media (max-width: 51.99rem) {
  .hero__media { max-width: 30rem; margin-inline: auto; }
}

@media (min-width: 34rem) and (max-width: 59.99rem) {
  .daily__media img { aspect-ratio: 4 / 3; object-position: 50% 60%; }
}

@media (max-width: 34rem) {
  .hero { padding-bottom: 3.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media { width: 92%; margin-inline: auto; }
  .about__media img { aspect-ratio: 1; object-position: 30% 20%; }
}

/* Ohne Hero-Bild: Text über volle Breite */
.hero__grid:not(:has(.hero__media)) { grid-template-columns: 1fr; }

/* ---------- Abschnitte allgemein ---------- */

.section { padding-block: var(--section); }
.section--sage { background: var(--sage); }
.section--tight-top { padding-top: clamp(2rem, 5vw, 4rem); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2,
.section h2 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.75rem); }
.section-head p { margin-top: 1rem; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); }

/* ---------- Über mich ---------- */

.about__grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__media picture {
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) .75rem;
  overflow: hidden;
  background: var(--sage);
}
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 30%; }

.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { max-width: 36rem; }
.about__sign {
  margin-top: 1.75rem;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--terra);
}

@media (min-width: 40rem) {
  .about__grid { grid-template-columns: 5fr 6fr; }
}
.about__grid:not(:has(.about__media)) { grid-template-columns: 1fr; }

/* ---------- Alltag ---------- */

.daily__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.daily__media { margin: 0; }
.daily__media picture { border-radius: var(--radius-lg); overflow: hidden; background: var(--sage-deep); }
.daily__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.daily__media figcaption { margin-top: .75rem; font-size: 1rem; color: var(--ink-soft); }

.tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--cream);
  transition: transform .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); }
.tile__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  background: var(--sun);
  color: var(--ink);
}
.tile__icon svg { width: 1.75rem; height: 1.75rem; }
.tile h3 { font-size: 1.375rem; margin-bottom: .4rem; }
.tile p { color: var(--ink-soft); font-size: 1.0625rem; }

@media (min-width: 60rem) {
  .daily__grid { grid-template-columns: 2fr 3fr; }
  .daily__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.daily__grid:not(:has(.daily__media)) { grid-template-columns: 1fr; }

/* ---------- Auf einen Blick ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
}
.fact {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--cream-deep);
}
.fact:nth-child(2) { background: var(--sage); }
.fact:nth-child(3) { background: #fbe7c0; }
.fact:nth-child(4) { background: #f3ddd2; }
.fact dt { font-size: 1.0625rem; font-weight: 600; color: var(--ink-soft); }
.fact { min-width: 0; }
.fact dd {
  margin: .5rem 0 0;
  overflow-wrap: break-word;
  hyphens: manual;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.fact dd small {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery figure { margin: 0; }
.gallery picture { border-radius: var(--radius); overflow: hidden; background: var(--sage); }
.gallery img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery__more { margin-top: 2rem; }

/* ---------- Kontakt ---------- */

.contact { background: var(--green); color: var(--white); }
.contact a { color: var(--white); }
.contact :focus-visible { outline-color: var(--sun); }

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact h2 { color: var(--white); }
.contact__lead { margin-top: 1rem; max-width: 30rem; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); }

.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact .btn--wa { background: var(--white); color: var(--green); }
.contact .btn--wa:hover { background: var(--sage); color: var(--green-dark); }
.contact .btn--call { background: var(--sun); color: var(--ink); }
.contact .btn--call:hover { background: #e9b334; color: var(--ink); }

.contact__list { margin: 0; display: grid; gap: .5rem; }
.contact__item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--green-dark);
}
.contact__item svg { width: 1.6rem; height: 1.6rem; justify-self: center; color: var(--sun); }
.contact__item dt { font-size: .9375rem; color: #cfe0d4; }
.contact__item dd { margin: 0; font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.contact__item a { text-decoration: none; }
.contact__item a:hover { text-decoration: underline; }

@media (min-width: 56rem) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--green-dark); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--sun); }
.footer__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 1rem + 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 1rem;
  color: #cfe0d4;
}
.footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__links a { display: inline-block; padding: .5rem 0; }

/* ---------- Mobile Aktionsleiste ---------- */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--cream);
  box-shadow: 0 -8px 24px -12px rgba(38, 51, 44, .3); /* schwebt über dem Inhalt */
  transition: transform .3s var(--ease);
}
.mobile-bar .btn { min-height: 3.25rem; padding-inline: .75rem; }
.mobile-bar.is-hidden { transform: translateY(110%); }

@media (max-width: 47.99rem) {
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 48rem) {
  .mobile-bar { display: none; }
}

/* ---------- Rechtliche Seiten ---------- */

.legal { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.75rem); margin-bottom: 2rem; hyphens: auto; overflow-wrap: break-word; }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin: 2.5rem 0 .75rem; }
.legal h3 { font-size: 1.1875rem; margin: 1.5rem 0 .5rem; }
.legal__body { max-width: 44rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }

/* Deutlich markierte Platzhalter – vor Veröffentlichung ausfüllen */
.todo {
  display: block;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #fff1b8;
  border-left: 6px solid var(--terra);
  color: var(--ink);
}
.todo::before { content: "Bitte ausfüllen/prüfen: "; font-weight: 700; color: var(--terra-dark); }

.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; font-weight: 600; }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-bar, .wave { display: none; }
}
