/* =========================================================
   Lionel Webdesign – Gestaltung
   ---------------------------------------------------------
   Farben: "Abend am Greifensee"
   Tiefes Nachtblau, heller Kalkstein, ein Hauch Messing.
   Wer die Farben ändern will, ändert nur diesen Block.
   ========================================================= */
:root {
  --nacht: #13232d;        /* dunkle Flächen, Haupttext */
  --nacht-tief: #0d1a22;   /* Fusszeile */
  --stein: #f6f6f3;        /* heller Hintergrund */
  --nebel: #eceeeb;        /* leicht getönte Abschnitte */
  --linie: #d8dcd8;        /* Trennlinien auf hell */
  --linie-dunkel: rgba(246, 246, 243, 0.16); /* Trennlinien auf dunkel */
  --weich: #59666d;        /* Nebentexte auf hell */
  --weich-dunkel: rgba(246, 246, 243, 0.68); /* Nebentexte auf dunkel */
  --messing: #b8935a;      /* Akzent: nur für Linien, Zahlen, Knöpfe */
  --messing-hell: #cfae78;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --weich-ein: cubic-bezier(0.2, 0.7, 0.1, 1);   /* Bewegungskurve für alle Animationen */
}

/* ===== Schriften (liegen im Ordner "fonts", keine Verbindung zu Google) ===== */
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===== Grundeinstellungen ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--nacht);
  background: var(--stein);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--messing);
  outline-offset: 4px;
}

::selection {
  background: var(--messing);
  color: var(--nacht);
}

.rahmen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* Lesetext nie breiter als angenehm */
.lesen > * {
  max-width: 720px;
}

/* Nur für Screenreader sichtbar */
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Link für Tastatur-Nutzer, erscheint erst beim Tabben */
.sprung {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--messing);
  color: var(--nacht);
  padding: 10px 16px;
  text-decoration: none;
}

.sprung:focus {
  top: 16px;
}

/* ===== Überschriften ===== */
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  margin-bottom: 40px;
}

/* Kurze Messinglinie unter jeder Abschnitts-Überschrift */
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 24px;
  background: var(--messing);
  transform-origin: left center;
}

/* =========================================================
   KNÖPFE UND LINKS
   ========================================================= */
.knopf {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 17px 32px;
  border-radius: 2px;
  background: var(--nacht);
  color: var(--stein);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.45s var(--weich-ein);
}

/* Füllung, die beim Darüberfahren von links hereingleitet */
.knopf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--messing);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--weich-ein);
}

.knopf span {
  position: relative;
}

.knopf:hover {
  color: var(--nacht);
}

.knopf:hover::before {
  transform: scaleX(1);
}

/* Heller Knopf auf dunklem Grund */
.knopf-hell {
  background: var(--stein);
  color: var(--nacht);
}

/* Messing-Knopf im Kontaktbereich */
.knopf-messing {
  background: var(--messing);
  color: var(--nacht);
  font-size: 1.1rem;
  padding: 20px 40px;
}

.knopf-messing::before {
  background: var(--stein);
}

/* Textlink: die Linie wächst beim Darüberfahren auf volle Breite */
.textlink,
.kopf-link {
  text-decoration: none;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--messing), var(--messing));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.5s var(--weich-ein);
}

.textlink {
  font-weight: 600;
  background-size: 36% 1px;
}

.textlink:hover {
  background-size: 100% 1px;
}

.kopf-link {
  background-size: 0% 1px;
}

.kopf-link:hover {
  background-size: 100% 1px;
}

.knopf-reihe {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
}

/* =========================================================
   BÜHNE: dunkler Einstieg über die ganze Bildschirmhöhe
   ========================================================= */
.buehne {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--nacht);
  color: var(--stein);
}

/* Auf Impressum und Datenschutz nur die Kopfzeile */
.buehne-klein {
  min-height: 0;
}

.kopf-inhalt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  /* Linie nur so breit wie der Inhalt */
  background: linear-gradient(var(--linie-dunkel), var(--linie-dunkel)) bottom / 100% 1px no-repeat content-box;
}

.name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  text-decoration: none;
}

.einstieg {
  flex: 1;
  display: flex;
}

.einstieg > .rahmen {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: clamp(48px, 10vh, 128px);
}

.einstieg h1 {
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* Jedes Wort sitzt in einem Fenster, aus dem es aufsteigt */
.wort {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.wort > span {
  display: inline-block;
}

.einleitung {
  max-width: 34em;
  margin: 32px 0 40px;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--weich-dunkel);
}

/* Drei Eckdaten am unteren Rand der Bühne */
.eckdaten {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  padding-top: 72px;
}

.eckdaten::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  height: 1px;
  background: var(--messing);
  transform-origin: left center;
}

.eckdaten div {
  padding: 28px 32px 40px 0;
}

.eckdaten div + div {
  padding-left: 32px;
  border-left: 1px solid var(--linie-dunkel);
}

.eckdaten dt {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.eckdaten dd {
  font-size: 0.95rem;
  color: var(--weich-dunkel);
}

/* =========================================================
   ABSCHNITTE
   ========================================================= */
.abschnitt {
  padding: clamp(80px, 11vw, 140px) 0;
}

.abschnitt + .abschnitt {
  border-top: 1px solid var(--linie);
}

/* Probleme mit Messing-Strich */
.probleme {
  list-style: none;
  border-top: 1px solid var(--linie);
}

.probleme li {
  position: relative;
  padding: 24px 0 24px 48px;
  border-bottom: 1px solid var(--linie);
  font-size: 1.15rem;
}

.probleme li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 39px;
  width: 26px;
  height: 1px;
  background: var(--messing);
}

.ueberleitung {
  margin-top: 48px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  line-height: 1.35;
}

/* Listen: Angebot und Zusagen */
.liste {
  border-top: 1px solid var(--linie);
}

.liste div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--linie);
}

.liste dt {
  font-weight: 600;
}

.liste dd {
  color: var(--weich);
}

/* Zusagen: Titel ist ein ganzer Satz, deshalb untereinander */
.liste-saetze div {
  grid-template-columns: 1fr;
  gap: 4px;
}

.liste-saetze dt {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

/* ===== Preise: das Herzstück ===== */
.preise-bereich {
  background: var(--nebel);
}

.hinweis {
  margin: -12px 0 40px;
  color: var(--weich);
}

.preise {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--linie);
}

.preise tr {
  border-bottom: 1px solid var(--linie);
}

.preise th,
.preise td {
  padding: 32px 0;
  vertical-align: baseline;
}

.preise th {
  padding-right: 28px;
  text-align: left;
  font-weight: 600;
}

.preise th span {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  color: var(--weich);
}

.preise td {
  text-align: right;
  white-space: nowrap;
  color: var(--weich);
}

.betrag {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--nacht);
}

.preise td small {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
}

.zusatz {
  margin: 24px 0 44px;
  font-size: 0.95rem;
  color: var(--weich);
}

/* ===== Ablauf ===== */
.ablauf {
  list-style: none;
  counter-reset: schritt;
}

.ablauf li {
  counter-increment: schritt;
  position: relative;
  padding: 0 0 32px 72px;
}

.ablauf li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: -12px;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--messing);
}

.ueber-mich {
  font-size: 1.15rem;
}

/* ===== Kontakt ===== */
.kontakt {
  padding: clamp(96px, 13vw, 168px) 0;
  background: var(--nacht);
  color: var(--stein);
}

.kontakt h2 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
}

.kontakt p {
  max-width: 34em;
  margin-bottom: 44px;
  color: var(--weich-dunkel);
}

.kontakt .kontakt-adresse {
  margin: 20px 0 0;
  font-size: 0.95rem;
}

/* ===== Fusszeile ===== */
.fuss {
  padding: 32px 0;
  background: var(--nacht-tief);
  color: var(--weich-dunkel);
  font-size: 0.9rem;
}

.fuss-inhalt {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.fuss nav {
  display: flex;
  gap: 24px;
}

.fuss a {
  text-decoration: none;
  transition: color 0.3s;
}

.fuss a:hover {
  color: var(--stein);
}

/* =========================================================
   RECHTSTEXTE (Impressum, Datenschutz) und Fehlerseite
   ========================================================= */
.rechtstext {
  padding: clamp(64px, 9vw, 112px) 0 clamp(80px, 11vw, 136px);
}

.rechtstext h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 48px;
}

.rechtstext h2 {
  font-size: 1.45rem;
  margin: 48px 0 12px;
}

.rechtstext h2::after {
  display: none;
}

.rechtstext p,
.rechtstext ul {
  margin-bottom: 14px;
  color: var(--weich);
}

.rechtstext ul {
  padding-left: 20px;
}

.rechtstext address {
  margin-bottom: 14px;
  font-style: normal;
}

.rechtstext .stand {
  margin-top: 56px;
  font-size: 0.9rem;
}

.zurueck {
  display: inline-block;
  margin-bottom: 40px;
}

.fehler {
  flex: 1;
  display: flex;
  align-items: center;
}

.fehler h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 24px;
}

.fehler p {
  margin-bottom: 40px;
  color: var(--weich-dunkel);
}

/* =========================================================
   ANIMATIONEN
   Laufen nur, wenn im Betriebssystem nicht "weniger
   Bewegung" eingestellt ist. Ohne JavaScript ist der ganze
   Inhalt trotzdem sichtbar.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* --- 1. Einstieg: einmalige Abfolge beim Laden --- */
  .wort > span {
    animation: aufsteigen 1.1s var(--weich-ein) both;
  }

  .wort:nth-of-type(2) > span { animation-delay: 0.05s; }
  .wort:nth-of-type(3) > span { animation-delay: 0.1s; }
  .wort:nth-of-type(4) > span { animation-delay: 0.18s; }
  .wort:nth-of-type(5) > span { animation-delay: 0.23s; }
  .wort:nth-of-type(6) > span { animation-delay: 0.28s; }
  .wort:nth-of-type(7) > span { animation-delay: 0.33s; }
  .wort:nth-of-type(8) > span { animation-delay: 0.41s; }
  .wort:nth-of-type(9) > span { animation-delay: 0.46s; }
  .wort:nth-of-type(10) > span { animation-delay: 0.51s; }

  .einleitung {
    animation: einblenden 1s var(--weich-ein) 0.75s both;
  }

  .einstieg .knopf-reihe {
    animation: einblenden 1s var(--weich-ein) 0.9s both;
  }

  .eckdaten::before {
    animation: zeichnen 1.6s var(--weich-ein) 1.05s both;
  }

  .eckdaten div {
    animation: einblenden 1s var(--weich-ein) both;
  }

  .eckdaten div:nth-child(1) { animation-delay: 1.25s; }
  .eckdaten div:nth-child(2) { animation-delay: 1.37s; }
  .eckdaten div:nth-child(3) { animation-delay: 1.49s; }

  .kopf {
    animation: einblenden-ruhig 1.2s ease 0.2s both;
  }

  /* --- 2. Beim Scrollen: Inhalte gleiten sanft herein --- */
  .js [data-zeige],
  .js [data-zeige-gruppe] > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--weich-ein), transform 1.1s var(--weich-ein);
  }

  .js [data-zeige].ist-da,
  .js [data-zeige-gruppe].ist-da > * {
    opacity: 1;
    transform: none;
  }

  /* Listen erscheinen Eintrag für Eintrag */
  .js [data-zeige-gruppe] > :nth-child(2) { transition-delay: 0.09s; }
  .js [data-zeige-gruppe] > :nth-child(3) { transition-delay: 0.18s; }
  .js [data-zeige-gruppe] > :nth-child(4) { transition-delay: 0.27s; }

  /* Die Messinglinie unter den Überschriften zieht sich auf */
  .js h2[data-zeige]::after {
    transform: scaleX(0);
    transition: transform 1.2s var(--weich-ein) 0.35s;
  }

  .js h2[data-zeige].ist-da::after {
    transform: scaleX(1);
  }

  @keyframes aufsteigen {
    from { transform: translateY(105%); }
    to   { transform: none; }
  }

  @keyframes einblenden {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  @keyframes einblenden-ruhig {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes zeichnen {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* =========================================================
   GROSSE BILDSCHIRME: Überschrift links, Inhalt rechts.
   Die Überschrift bleibt beim Scrollen stehen.
   ========================================================= */
@media (min-width: 1040px) {
  .abschnitt .lesen {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 72px;
  }

  .abschnitt .lesen > * {
    grid-column: 2;
    max-width: 680px;
  }

  .abschnitt .lesen > h2 {
    grid-column: 1;
    grid-row: 1 / span 10;
    align-self: start;
    position: sticky;
    top: 56px;
    margin-bottom: 0;
  }

  .abschnitt .hinweis {
    margin-top: 0;
  }

  /* Knöpfe nur so breit wie ihr Text */
  .abschnitt .lesen > .knopf {
    justify-self: start;
  }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 860px) {
  /* Zeilenumbrüche der Überschrift nur auf grossen Bildschirmen */
  .nur-gross {
    display: none;
  }

  .liste div {
    grid-template-columns: 180px 1fr;
  }
}

/* =========================================================
   HANDY
   ========================================================= */
@media (max-width: 640px) {
  .kopf-inhalt {
    height: 72px;
  }

  .name {
    font-size: 1.2rem;
  }

  .einstieg > .rahmen {
    padding-top: 56px;
  }

  .knopf-reihe {
    flex-direction: column;
    align-items: flex-start;
  }

  .eckdaten {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .eckdaten::before {
    top: 56px;
  }

  .eckdaten div,
  .eckdaten div + div {
    padding: 22px 0;
    border-left: none;
  }

  .eckdaten div + div {
    border-top: 1px solid var(--linie-dunkel);
  }

  .liste div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .probleme li {
    padding-left: 40px;
  }

  .probleme li::before {
    width: 22px;
  }

  .ablauf li {
    padding-left: 56px;
  }

  .preise th,
  .preise td {
    padding: 26px 0;
  }
}

/* Beim Drucken alles sichtbar und hell */
@media print {
  .buehne,
  .kontakt,
  .fuss {
    background: none;
    color: #000;
  }

  .js [data-zeige],
  .js [data-zeige-gruppe] > * {
    opacity: 1;
    transform: none;
  }
}
