/* Natur mit Figuren: helles Naturbild oben, die Figuren in den vier Logofarben als Zeichen,
   bewegtes Figurenbrett bei der Methode. Baut auf style-b.css auf. */
@import url("style-b.css");

:root {
  --f-blau: #006ccd;
  --f-gelb: #feb902;
  --f-rot: #e00d18;
  --f-gruen: #5cac2a;
  --f-grau: #8d968f;
  --kontur: #1d2b22;
  --brett: #fbf6e9;
  --brett-linie: #e2d8bd;
}

.sprite { position: absolute; }
.f-blau { color: var(--f-blau); }
.f-gelb { color: var(--f-gelb); }
.f-rot { color: var(--f-rot); }
.f-gruen { color: var(--f-gruen); }
.f-grau { color: var(--f-grau); }

/* Hero: helles Naturbild, links ein heller Verlauf für den Text */
.hero-hell { position: relative; overflow: hidden; background: var(--paper-alt); padding: clamp(70px, 10vw, 140px) 0 clamp(60px, 9vw, 120px); }
.hero-bild { position: absolute; inset: 0; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 64%; }
.hero-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 248, 242, .96) 0%, rgba(250, 248, 242, .88) 38%, rgba(250, 248, 242, .32) 60%, rgba(250, 248, 242, 0) 76%); }
.hero-hell .hero-inner { position: relative; }
.hero-hell .hero-text { max-width: 610px; }
.hero-hell h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.hero-hell .eyebrow { color: #8a6417; }
.hero-hell .lead { color: var(--ink); font-size: 1.22rem; }
.hero-hell .hero-note { color: var(--ink); }
.hero-hell .btn-ghost { background: rgba(255, 255, 255, .72); }
.hero-hell .btn-ghost:hover { background: #fff; }

/* Desktop: Hero füllt mit der Kopfzeile (65 px) genau den ersten Bildschirm */
@media (min-width: 961px) {
  .hero-hell { display: flex; align-items: center; min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); padding: 60px 0; }
  .hero-hell .hero-inner { width: min(100% - 40px, var(--max)); }
}

/* Claim-Band mit einer kleinen Aufstellung */
.claim-in { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 5vw, 60px); }
.claim-figuren { flex: none; width: clamp(120px, 14vw, 170px); height: auto; }

/* Kleine Figur von oben als Listenzeichen */
.glyph { flex: none; width: 1.75rem; height: 1.36rem; overflow: visible; fill: currentColor; stroke: var(--kontur); stroke-width: 2.4; stroke-linejoin: round; }
.glyph.klein { width: 1.3rem; height: 1rem; stroke-width: 3.2; }

.themen-list li, .check li { display: flex; align-items: flex-start; gap: .7rem; padding-left: 0; }
.themen-list li::before, .check li::before { content: none; }
.themen-list .glyph, .check .glyph { margin-top: .34em; }
.check li { margin-bottom: 10px; }

.service .num { display: flex; align-items: center; gap: .55rem; }
.service-tree p { padding-right: 84px; }
.service-tree .tree svg { width: 84px; height: auto; }

/* Netzwerk unter dem Über-mich-Text. Eine Kachel pro Organisation, damit später ein Logo hineinpasst
   (IHK-Logo nur mit Lizenz vom Styleguide-Team der IHK München). */
.netzwerk { margin-top: 26px; }
.netzwerk h3 { font-size: 1.1rem; margin-bottom: 12px; }
.netzwerk-liste { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.netzwerk-liste li { display: flex; align-items: center; min-height: 64px; padding: 12px 16px; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; color: var(--blue-deep); }

/* Korrekturen aus dem Review vom 21.11. */
[id] { scroll-margin-top: 84px; }
.eyebrow, .hero-hell .eyebrow { color: #8a6417; }
.form-msg { color: var(--blue-deep); }
.kontakt-form input[type="text"], .kontakt-form input[type="email"], .kontakt-form input[type="tel"], .kontakt-form textarea { font-size: 1rem; border-color: #8d968f; }
.zitate blockquote::after { content: "\201C"; }
.nav a { white-space: nowrap; }
.footer-inner nav { flex-wrap: wrap; gap: 6px 18px; }
.haltung-list dt { display: flex; align-items: center; gap: .55rem; }

/* Kleine Bretter und Figurenreihen */
.mini { display: block; width: 100%; max-width: 200px; height: auto; margin-bottom: 16px; }
.mini .platte { fill: var(--brett); stroke: var(--kontur); stroke-width: 1.5; }
.mini use, .claim-figuren use { fill: currentColor; stroke: var(--kontur); stroke-width: 1.5; stroke-linejoin: round; }
.mini .f-leer { fill: #fff; stroke: var(--f-grau); }
.mini.reihe { max-width: 280px; margin: 4px 0 18px; }
.steps .step-num { margin-bottom: 10px; }

/* Methode: links der Text, rechts das Brett, darunter zwei Fotos */
.methode-kopf { max-width: 42em; margin-bottom: clamp(22px, 3.5vw, 36px); }
.methode-kopf .sub { margin-bottom: 0; }
.methode-grid .methode-text { order: 1; }
.methode-grid .methode-brett { order: 2; }
.methode-text > h3:first-of-type { margin-top: 1.4em; }
.methode-fotos { display: grid; grid-template-columns: 7fr 5fr; gap: 18px; margin-top: clamp(34px, 5vw, 60px); }
.methode-fotos > * { min-width: 0; }
.methode-fotos img { width: 100%; height: clamp(200px, 30vw, 380px); object-fit: cover; border-radius: var(--radius); }

/* Figurenbrett von oben. Das Skript brett-c2.js setzt --x, --y und --r neu,
   ein Übergang führt die Figuren an ihren Platz. */
.brett { margin: 0; position: sticky; top: 96px; }
.brett-bild { display: block; width: 100%; height: auto; }
.brett-platte { fill: var(--brett); stroke: var(--kontur); stroke-width: 2; }
.brett-feld { fill: none; stroke: var(--brett-linie); stroke-width: 2; }
.brett figcaption { margin-top: .8rem; font-family: var(--serif); font-style: italic; font-size: 1.08rem; line-height: 1.4; color: var(--blue-deep); }
.fig {
  fill: currentColor;
  stroke: var(--kontur);
  stroke-width: 2;
  stroke-linejoin: round;
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)) rotate(calc(var(--r) * 1deg));
  animation: settle 1.4s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(.3s + var(--i) * 90ms);
}
@keyframes settle {
  from { transform: translate(calc(var(--x0) * 1px), calc(var(--y0) * 1px)) rotate(0deg); }
}
/* Die Figuren warten in ihrer Reihe, bis das Brett ins Bild kommt */
.js .brett:not(.ist-da) .fig { animation-play-state: paused; }
.brett.is-frei .fig {
  animation: none;
  transition: transform 1.8s cubic-bezier(.6, 0, .2, 1);
  transition-delay: calc(var(--i) * 110ms);
}

/* Schalter zum Anhalten, vom Skript neben die Bildzeile gesetzt */
.brett.hat-halt { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: start; }
.brett.hat-halt > .brett-bild { grid-column: 1 / -1; }
.brett-halt {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: .55rem;
  padding: 0;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  cursor: pointer;
}
.brett-halt::after { content: ""; position: absolute; inset: -.3rem; }
.brett-halt:hover { border-color: var(--blue); color: var(--blue); }
.brett-halt svg { width: 1rem; height: 1rem; fill: currentColor; }
.brett-halt .z-weiter, .ist-angehalten .brett-halt .z-halt { display: none; }
.ist-angehalten .brett-halt .z-weiter { display: block; }

.mehr { display: inline-block; font-weight: 700; text-decoration: none; }
.mehr::after { content: "\00a0\2192"; }
.mehr:hover { text-decoration: underline; }
.service .mehr { margin-top: 12px; font-size: .95rem; }

/* Artikelseiten unter /wissen/ */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.artikel-kopf { background: var(--paper-alt); padding: clamp(44px, 7vw, 90px) 0 clamp(36px, 5vw, 64px); }
.artikel-kopf h1 { max-width: 17em; }
.artikel-kopf .lead { color: var(--ink); max-width: 40em; }
.autor { margin: 1.4em 0 0; font-size: .93rem; color: var(--ink-soft); }
.artikel .section { padding: clamp(40px, 6vw, 76px) 0; }

.vergleich { width: 100%; border-collapse: collapse; }
.vergleich th, .vergleich td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.vergleich thead th { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.25; color: var(--blue-deep); border-bottom: 2px solid var(--blue); }
.vergleich thead .glyph { display: inline-block; vertical-align: -.08em; margin-right: .5rem; }
.vergleich tbody th { width: 9.5em; font-weight: 700; }
.vergleich td { width: 50%; }

.anlass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.anlass { min-width: 0; background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: 0 6px 24px rgba(31, 64, 41, .08); }
.anlass .mini { max-width: 160px; }
.anlass blockquote { margin: 0 0 1.2em; padding-left: 16px; border-left: 3px solid var(--f-blau); }
.anlass.coaching blockquote { border-left-color: var(--f-gelb); }
.anlass blockquote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.14rem; line-height: 1.45; color: var(--blue-deep); }
.anlass-titel { margin-bottom: .6em; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.anlass .check li:last-child { margin-bottom: 0; }

.artikel-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.artikel-grid > * { min-width: 0; }
.artikel-text h2:not(:first-child) { margin-top: 1.5em; }
.artikel-bild { border-radius: var(--radius); }

.artikel-ruf { background: var(--green-soft); border-top: 1px solid #ead9b0; padding: clamp(40px, 6vw, 70px) 0; }
.artikel-ruf h2 { max-width: 20em; }
.artikel-ruf p { max-width: 40em; }
.artikel-ruf .btn-ghost { background: rgba(255, 255, 255, .6); }
.artikel-ruf .small { margin: 18px 0 0; }

/* Inhalte unter dem ersten Bildschirm, Klasse setzt einblenden.js */
.einblenden { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--verz, 0s); }
.einblenden.ist-sichtbar { opacity: 1; transform: none; }
@media print { .einblenden { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fig, .brett.is-frei .fig { animation: none; transition: none; }
  .brett-halt { display: none; }
}

@media (max-width: 960px) {
  .brett { position: static; max-width: 520px; }
  .methode-grid .methode-brett { order: 0; }
  .artikel-grid { grid-template-columns: 1fr; }

  /* Menü schon ab Tablet einklappen, sonst brechen die Punkte zweizeilig um */
  .nav-toggle { display: inline-block; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 2px; }
  .nav ul.open { display: flex; }
  .nav a { display: block; padding: 12px; }
  .artikel-bild { max-width: min(100%, 520px); }
}
@media (max-width: 720px) {
  .hero-hell { padding-top: 0; }
  .hero-bild { position: relative; height: 54vw; max-height: 300px; }
  .hero-bild::after { background: linear-gradient(180deg, rgba(245, 242, 234, 0) 60%, var(--paper-alt) 100%); }
  .hero-hell .hero-inner { padding-top: 18px; }
  .claim-figuren { display: none; }
  .brand-text strong { white-space: normal; font-size: .95rem; line-height: 1.15; }
  .methode-fotos { grid-template-columns: 1fr; }
  .methode-fotos img { height: auto; aspect-ratio: 4 / 3; }
  .anlass-grid { grid-template-columns: 1fr; }

  /* Vergleich gestapelt: je Begriff ein Block, die Spalte steht als Zeile über der Zelle */
  .vergleich, .vergleich tbody, .vergleich tr, .vergleich th, .vergleich td { display: block; width: auto; }
  .vergleich thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vergleich tbody tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .vergleich tbody tr:first-child { border-top: 2px solid var(--blue); }
  .vergleich tbody th { width: auto; padding: 0 0 4px; border: 0; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--blue-deep); }
  .vergleich td { padding: 8px 0 0 14px; border: 0; border-left: 3px solid var(--f-blau); margin-top: 10px; }
  .vergleich td + td { border-left-color: var(--f-gelb); }
  .vergleich td::before { content: attr(data-spalte); display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
}

.kontakt-form[hidden] { display: none; }
.kontakt-grid.ohne-formular { grid-template-columns: 1fr; }

/* Tablet hochkant: drei Karten nebeneinander statt einer allein stehenden dritten */
@media (min-width: 721px) and (max-width: 960px) {
  .cards.three, .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card h3 { margin: 14px 16px 6px; font-size: 1.1rem; }
  .card p { margin: 0 16px 18px; font-size: .95rem; }
  .steps li { padding: 20px; }
  .service:nth-child(5) { grid-column: span 6; }
}
@media (max-width: 960px) {
  .brett { margin-inline: auto; }
  .artikel-bild { margin-inline: auto; }
}
@media (min-width: 961px) {
  .artikel-bild { position: sticky; top: 96px; }
}
@media (max-width: 720px) {
  .service-tree p { padding-right: 56px; }
  .service-tree .tree svg { width: 60px; }
}
