/* ==========================================================================
   ALW Buchhaltung — Stylesheet
   Farben und Formensprache aus der gedruckten Unternehmensvorstellung.
   ========================================================================== */

/* --- Schriften ------------------------------------------------------------
   Alle Schriften liegen im Ordner "schriften" und werden vom eigenen Server
   geladen — kein Google-CDN, keine Besucherdaten an Dritte.               */

@font-face {
  font-family: "ALW Display Basis";
  src: url("../schriften/alw-display-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ALW Display Basis";
  src: url("../schriften/alw-display-500.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "ALW Text";
  src: url("../schriften/alw-text-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "ALW Text";
  src: url("../schriften/alw-text-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* --- Grundwerte ---------------------------------------------------------- */

:root {
  --petrol: #104757;
  --petrol-hell: #1b6376;
  --bordeaux: #6d2847;
  --bordeaux-hell: #8a3a5d;
  --tinte: #14161a;
  --papier: #fbfaf8;
  --grau: #5f676d;
  --grau-hell: #6b7379;
  --linie: #dcdfe1;

  --display: "ALW Display Basis", Georgia, "Times New Roman", serif;
  --text: "ALW Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;

  --spur: 0.24em; /* Sperrung der Kleinschrift, wie in der Broschüre */
  --breite: 1180px;
  --schraege: 5.5rem;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* --- Bausteine ----------------------------------------------------------- */

.huelle {
  width: min(100% - 3rem, var(--breite));
  margin-inline: auto;
}

.augenbraue {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--spur);
  text-transform: uppercase;
  color: var(--grau);
  margin: 0 0 1.4rem;
}

.augenbraue--hell {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5.9vw, 4.15rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.9rem, 3.9vw, 2.9rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.strich {
  width: 88px;
  height: 2px;
  background: var(--bordeaux);
  border: 0;
  margin: 1.6rem 0 2rem;
}

.strich--hell {
  background: rgba(255, 255, 255, 0.55);
}

.vorspann {
  font-size: 1.15rem;
  color: var(--grau);
  max-width: 46ch;
}

/* --- Schaltflächen ------------------------------------------------------- */

.knopf {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--petrol);
  background: var(--petrol);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.knopf:hover,
.knopf:focus-visible {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
}

.knopf--offen {
  background: var(--papier);
  color: var(--petrol);
}

.knopf--offen:hover,
.knopf--offen:focus-visible {
  background: var(--petrol);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}

.sprung {
  position: absolute;
  left: -9999px;
}

.sprung:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.8rem 1.2rem;
}

/* --- Kopfzeile ----------------------------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}

.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 0;
}

.kopf__logo img {
  width: 148px;
}

.kopf__nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.kopf__nav a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tinte);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}

.kopf__nav a:hover,
.kopf__nav a:focus-visible {
  border-bottom-color: var(--bordeaux);
}

.kopf__telefon {
  color: var(--petrol) !important;
  line-height: 1.25;
}

.kopf__zeiten {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--grau);
  margin-top: 0.15rem;
}

/* --- Auftakt (Hero) ------------------------------------------------------ */

.auftakt {
  position: relative;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(9rem, 17vw, 14rem);
  overflow: hidden;
}

.auftakt__flaeche {
  position: absolute;
  inset: auto -12% -14% 54%;
  height: clamp(130px, 17vw, 250px);
  background: var(--petrol);
  transform: skewX(-14deg);
  z-index: 0;
}

.auftakt__innen {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auftakt h1 {
  margin-bottom: 0.2rem;
}

.auftakt__satz {
  font-size: 1.2rem;
  color: var(--grau);
  margin: 0 0 2.6rem;
  max-width: 34ch;
}

.auftakt__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* --- Zweispaltiger Abschnitt --------------------------------------------- */

.abschnitt {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.duo {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.duo p {
  max-width: 52ch;
}

.portraet {
  position: relative;
  margin: 0;
  max-width: 420px;
}

.portraet__rahmen {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  background: #262626;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 22, 26, 0.18);
}

.portraet__rahmen img {
  width: 100%;
  height: auto;
  display: block;
}

.portraet__bildunterschrift {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grau);
  margin-top: 1rem;
}

/* --- Farbige Bänder mit Schrägschnitt ------------------------------------ */

.band {
  position: relative;
  color: #fff;
  padding: calc(var(--schraege) + 3.5rem) 0 calc(var(--schraege) + 3rem);
  clip-path: polygon(0 var(--schraege), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--schraege) * -1 + 2rem);
}

.band--petrol {
  background: var(--petrol);
}

.band--bordeaux {
  background: var(--bordeaux);
  padding-bottom: 3rem;
}

/* die feinen Diagonalen aus der Broschüre */
.band__linien {
  position: absolute;
  top: 12%;
  right: 3%;
  width: 90px;
  height: 76%;
  opacity: 0.3;
  pointer-events: none;
}

.band__linien span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: #fff;
  transform: skewX(-14deg);
}

.band__linien span:nth-child(1) {
  right: 0;
}

.band__linien span:nth-child(2) {
  right: 46px;
  height: 62%;
  top: 20%;
}

.versprechen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

.versprechen p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 44ch;
  margin: 0;
}

/* --- Leistungen ---------------------------------------------------------- */

.leistungen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  column-gap: clamp(2rem, 4vw, 3.4rem);
  border-top: 1px solid var(--linie);
}

.leistung {
  padding: 2.4rem 0 2.6rem;
  border-bottom: 1px solid var(--linie);
  position: relative;
}

.leistung::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bordeaux);
  transition: width 0.45s ease;
}

.leistung:hover::before,
.leistung:focus-within::before {
  width: 72px;
}

.leistung h3 {
  color: var(--petrol);
  margin-bottom: 0.9rem;
  font-size: 1.18rem;
}

.leistung p {
  margin: 0;
  color: var(--grau);
  font-size: 1rem;
  max-width: 42ch;
}

.hinweis {
  margin-top: 2.6rem;
  font-size: 0.85rem;
  color: var(--grau-hell);
  max-width: 78ch;
}

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

.kontakt {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.kontakt p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 42ch;
}

.kontaktdaten {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 2;
}

.kontaktdaten a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.kontaktdaten a:hover,
.kontaktdaten a:focus-visible {
  border-bottom-color: #fff;
}

.kontaktdaten .beschriftung {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--spur);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 2.6;
}

.knopf--hell {
  background: #fff;
  border-color: #fff;
  color: var(--bordeaux);
  margin-top: 2rem;
}

.knopf--hell:hover,
.knopf--hell:focus-visible {
  background: transparent;
  color: #fff;
}

/* --- Fußzeile ------------------------------------------------------------ */

.fuss {
  background: var(--bordeaux);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 3.5rem;
  font-size: 0.86rem;
}

.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 2.4rem;
}

.fuss__logo img {
  width: 168px;
}

.fuss__links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.fuss__links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.fuss__rechtstext {
  width: 100%;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 80ch;
  margin-top: 1.6rem;
}

/* --- Unterseiten (Impressum, Datenschutz) -------------------------------- */

.textseite {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6rem);
  max-width: 72ch;
}

.textseite h2 {
  font-size: 1.35rem;
  margin: 2.8rem 0 0.9rem;
  color: var(--petrol);
}

.textseite p,
.textseite li {
  color: #33383d;
}

.textseite ul {
  padding-left: 1.2rem;
}

.platzhalter {
  background: #fdf3d8;
  border-left: 3px solid #c8a227;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  margin: 1.2rem 0;
}


/* --- Ablauf: nummerierte Schritte ---------------------------------------- */

.schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-top: 2.6rem;
}

.schritt__nr {
  font-family: var(--display);
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-bottom: 0.5rem;
}

.schritt h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 0.9rem;
}

.schritt p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
}

/* --- Monatsrhythmus ------------------------------------------------------ */

.rhythmus {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 2.2rem;
}

.rhythmus__liste {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem 2rem;
}

.rhythmus__liste li {
  border-left: 2px solid rgba(255, 255, 255, 0.45);
  padding-left: 1rem;
}

.rhythmus__tag {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.rhythmus__was {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
}

/* --- Software und Belegwege ---------------------------------------------- */

.systeme {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3.2rem);
  margin-top: 2.4rem;
}

.system h3 {
  font-size: 1.1rem;
  color: var(--petrol);
  border-top: 2px solid var(--bordeaux);
  padding-top: 1rem;
  margin-bottom: 0.8rem;
}

.system p {
  margin: 0;
  color: var(--grau);
  font-size: 1rem;
}

.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.6rem;
}

.marke {
  border: 1px solid var(--linie);
  padding: 0.5rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol);
}

/* --- Team ---------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem 2.4rem;
  margin-top: 2.2rem;
  border-top: 1px solid var(--linie);
  padding-top: 1.8rem;
}

.team__zahl {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--petrol);
  display: block;
  line-height: 1.1;
}

.team__text {
  color: var(--grau);
  font-size: 0.98rem;
}

/* --- Bewegung ------------------------------------------------------------ */

.auftauchen {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.auftauchen.sichtbar {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .auftauchen {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Kleinere Bildschirme ------------------------------------------------ */

@media (max-width: 860px) {
  :root {
    --schraege: 2.5rem;
  }

  .kopf {
    position: static;
  }

  .kopf__innen {
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
  }

  .kopf__nav {
    order: 3;
    width: 100%;
    gap: 1.2rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--linie);
    padding-top: 0.7rem;
  }

  .kopf__nav a {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .kopf__telefon {
    order: -1;
  }

  .auftakt__flaeche {
    inset: auto -22% -12% 52%;
    height: clamp(110px, 22vw, 170px);
  }

  .duo,
  .versprechen,
  .kontakt {
    grid-template-columns: 1fr;
  }

  .portraet {
    max-width: 320px;
  }

  .leistung {
    padding-right: 0;
  }

  .band__linien {
    display: none;
  }
}
