/* Ahauser Zimmerei, Variante nach Vorlage: helles Papier, dunkles Tannengruen, Serifen-Ueberschriften,
   handschriftliche Randnotizen und ein runder Stempel. Fraunces, Manrope, Caveat, alle lokal. */

:root {
  --papier: #F4F1EA;
  --papier-tief: #EAE5D9;
  --weiss: #FFFFFF;
  --gruen: #2F4A2E;
  --gruen-tief: #22371F;
  --gruen-hell: #E3EADF;
  --holz: #E9D6B6;
  --tinte: #1E1E1C;
  --gedaempft: #5E5D57;
  --linie: #DDD7CA;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;

  --mass: 1280px;
  --rand: clamp(18px, 4vw, 44px);
  --radius: 6px;
  --schatten: 0 14px 34px rgba(30, 30, 28, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); }
a:hover { color: var(--gruen-tief); }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; }

.wrap { max-width: var(--mass); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gruen); color: var(--weiss); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; color: var(--tinte); letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(48px, 7vw, 96px); line-height: .98; font-weight: 700; }
h1 em { font-style: italic; font-weight: 600; color: var(--gruen); }
h2 { font-size: clamp(28px, 3vw, 38px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0; }
.lauftext { max-width: 34rem; color: var(--gedaempft); }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--tinte); margin-bottom: 12px; }
.hand { font-family: var(--hand); font-weight: 500; font-size: 30px; line-height: 1.05; color: var(--tinte); }

/* Abschnittstitel mit Strich, wie in der Vorlage ------------------------- */
.titel-strich { display: flex; align-items: center; gap: 16px; }
.titel-strich::after { content: ""; width: 44px; height: 2px; background: var(--tinte); flex: none; }

/* Knoepfe ----------------------------------------------------------------- */
.knopf { display: inline-flex; align-items: center; gap: 10px; background: var(--gruen); color: var(--weiss); text-decoration: none; font-weight: 700; font-size: 16px; padding: 0 22px; min-height: 50px; border-radius: var(--radius); border: 1.5px solid var(--gruen); }
.knopf:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); color: var(--weiss); }
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf--rahmen { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf--rahmen:hover { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.pfeil-link { display: inline-flex; align-items: center; gap: 8px; color: var(--tinte); font-weight: 600; text-decoration: none; }
.pfeil-link:hover { color: var(--gruen); }
.pfeil-link svg { width: 16px; height: 16px; }

/* Kopfzeile --------------------------------------------------------------- */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(244, 241, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf-zeile { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.marke { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.marke img { width: auto; height: 46px; }
.nav { margin-left: 8px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav a:not(.knopf) { color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:not(.knopf):hover { border-bottom-color: var(--linie); }
.nav a[aria-current="page"] { border-bottom-color: var(--tinte); }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.kopf-knopf { min-height: 44px; padding: 0 18px; white-space: nowrap; font-size: 15.5px; }
.kopf-notiz { font-family: var(--hand); font-size: 22px; line-height: 1; color: var(--tinte); transform: rotate(-7deg); white-space: nowrap; }
.nav-schalter { display: none; margin-left: auto; flex: none; font: inherit; font-weight: 700; color: var(--tinte); background: transparent; border: 1px solid var(--linie); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }

/* Einstieg ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--papier); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(28px, 4vw, 52px); }
.hero-text h1 { margin-bottom: 14px; }
.hero-zeile { font-family: var(--text); font-weight: 600; font-size: 18px; color: var(--gruen); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.hero-zeile span + span::before { content: "|"; color: var(--gedaempft); margin-right: 10px; font-weight: 400; }
.hero-text .lauftext { margin-bottom: 24px; max-width: 30rem; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-bilder { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; }
.hero-bilder figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--papier-tief); }
.hero-bilder img { width: 100%; height: 100%; object-fit: cover; }
.hero-bilder .gross { grid-column: 1 / -1; aspect-ratio: 705 / 471; max-width: 705px; justify-self: center; }
.hero-bilder .klein { aspect-ratio: 3 / 2; }
.hero-bilder .klein img { width: auto; max-width: 100%; height: auto; }
.hero-notiz { position: absolute; left: -8px; top: 8%; font-family: var(--hand); font-size: 28px; line-height: 1; color: var(--tinte); transform: rotate(-12deg); background: rgba(244,241,234,.85); padding: 6px 12px; border-radius: 6px; }
.stempel { position: absolute; right: -6px; top: 10%; width: 150px; height: 150px; border-radius: 50%; background: var(--gruen); color: var(--papier); display: grid; place-items: center; text-align: center; font-family: var(--hand); font-size: 22px; line-height: 1.05; transform: rotate(8deg); box-shadow: var(--schatten); border: 3px solid var(--papier); outline: 2px solid var(--gruen); padding: 14px; }
.stempel svg { width: 22px; height: 22px; stroke: var(--papier); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
.bildnachweis { position: absolute; right: 8px; bottom: 6px; font-size: 12px; color: var(--gedaempft); background: rgba(244,241,234,.85); padding: 1px 6px; border-radius: 4px; }

/* Leistungen -------------------------------------------------------------- */
.leistungen { padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--linie); }
.titelzeile { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.titelzeile .pfeil-link { margin-left: auto; font-size: 15px; }
.karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.karten > li { display: flex; }
.karte { height: 100%; width: 100%; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--tinte); }
.karte:hover { border-color: var(--gruen); }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte div { padding: 12px 14px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-content: start; align-items: start; flex: 1; }
.karte h3 { grid-column: 1; font-family: var(--text); font-weight: 700; font-size: 16px; }
.karte p { grid-column: 1; color: var(--gedaempft); font-size: 14px; line-height: 1.4; }
.karte svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; stroke: var(--tinte); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Merkmale ---------------------------------------------------------------- */
.merkmale { background: var(--papier-tief); padding: 18px 0; }
.merkmale ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; }
.merkmale li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.merkmale svg { width: 28px; height: 28px; stroke: var(--tinte); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.merkmale strong { display: block; font-size: 15.5px; }
.merkmale span { color: var(--gedaempft); font-size: 14px; line-height: 1.4; }

/* Projekte und Moin ------------------------------------------------------- */
.projekte { padding: clamp(32px, 4vw, 52px) 0; }
.projekte .wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.galerie figcaption { font-weight: 700; font-size: 15px; margin-top: 8px; }
.galerie figcaption span { display: block; font-weight: 400; color: var(--gedaempft); font-size: 13.5px; }
.moin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.moin h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 8px 0 6px; }
.moin h2 em { font-style: italic; font-weight: 600; }
.moin .rolle { font-weight: 700; margin-bottom: 8px; }
.moin .lauftext { font-size: 15px; }
.moin .hand { display: inline-block; margin-top: 10px; transform: rotate(-4deg); font-size: 26px; }
.moin .hand small { display: block; font-family: var(--text); font-size: 13px; color: var(--gedaempft); transform: none; }
.portrait { margin: 0; position: relative; width: 240px; }
.portrait img { width: 240px; height: 300px; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.portrait figcaption { position: absolute; right: -10px; bottom: 18px; background: var(--gruen); color: var(--papier); font-family: var(--hand); font-size: 20px; line-height: 1.05; padding: 10px 14px; border-radius: 4px; transform: rotate(6deg); max-width: 170px; box-shadow: var(--schatten); }

/* Aufruf ------------------------------------------------------------------ */
.aufruf { position: relative; background: var(--holz) url(img/gen/hobelspan-kachel.webp) center / 520px repeat; padding: clamp(24px, 3vw, 36px) 0; overflow: hidden; }
.aufruf::before { content: ""; position: absolute; inset: 0; background: rgba(233, 214, 182, .78); }
.aufruf .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) auto; gap: 24px; align-items: center; }
.aufruf h2 { font-size: clamp(26px, 2.8vw, 36px); }
.aufruf h2 span { display: block; font-weight: 400; font-style: italic; }
.aufruf .lauftext { font-size: 15.5px; color: var(--tinte); }
.aufruf .hand { font-size: 24px; transform: rotate(-6deg); display: inline-block; }
.aufruf-hinweis { position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: var(--gedaempft); }

/* Fuss -------------------------------------------------------------------- */
.fuss { background: var(--gruen-tief); color: #D8DFD3; padding: 18px 0 20px; font-size: 14.5px; }
.fuss .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.fuss .marke img { height: 34px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover { color: var(--holz); }
.fuss .ort { display: inline-flex; align-items: center; gap: 6px; }
.fuss .ort svg { width: 16px; height: 16px; stroke: #D8DFD3; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fuss .hand { color: var(--weiss); font-size: 24px; transform: rotate(-4deg); }
.fuss-hinweis { flex-basis: 100%; font-size: 13px; color: #B9C4B3; }

/* Ladeeffekt -------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-text > * { animation: auftauchen .6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero-text > *:nth-child(2) { animation-delay: .07s; }
  .js .hero-text > *:nth-child(3) { animation-delay: .14s; }
  .js .hero-text > *:nth-child(4) { animation-delay: .21s; }
  .js .hero-text > *:nth-child(5) { animation-delay: .28s; }
  .js .hero-bilder figure { animation: einblenden .9s ease-out both; }
  .js .stempel { animation: stempeln .5s .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes auftauchen { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
  @keyframes stempeln { from { opacity: 0; transform: rotate(8deg) scale(1.4); } to { opacity: 1; transform: rotate(8deg) scale(1); } }
}

/* Unterseiten ------------------------------------------------------------- */
.titel { background: var(--weiss); border-bottom: 1px solid var(--linie); padding: clamp(28px, 3.5vw, 48px) 0; }
.titel h1 { max-width: 22ch; margin-bottom: 10px; font-size: clamp(34px, 4vw, 56px); }
.abschnitt { padding: clamp(24px, 3vw, 44px) 0; }
.abschnitt--weiss { background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.textspalte { max-width: 38rem; }
.textspalte p + p, .textspalte ul + p, .textspalte p + ul, .textspalte ol + p, .textspalte p + ol { margin-top: 1em; }
.textspalte h2 { margin: 1.5em 0 .5em; }
.textspalte h3 { margin: 1.3em 0 .4em; }
.textspalte h4 { font-weight: 700; font-size: 17px; margin: 1.3em 0 .4em; color: var(--gruen); }
.textspalte a { overflow-wrap: anywhere; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.bild-rund { display: inline-block; max-width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); vertical-align: top; background: var(--weiss); }
.bild-rund img { width: auto; max-width: 100%; height: auto; }
.bildzeile { font-size: 14px; color: var(--gedaempft); margin-top: 8px; }
.galerie--echt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); grid-auto-rows: 1fr; gap: 14px; align-items: stretch; }
.galerie--echt figure { margin: 0; background: var(--weiss); border: 1px solid var(--linie); padding: 8px; border-radius: var(--radius); display: flex; flex-direction: column; width: 100%; height: 100%; }
.galerie--echt img { width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.galerie--echt figcaption { font-size: 13.5px; color: var(--gedaempft); margin-top: 6px; max-width: 320px; line-height: 1.3; }
.kasten { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 22px; }
.kasten h3 { margin-top: 0; margin-bottom: 8px; }
.kasten.hinweiskasten { background: var(--gruen-hell); border-color: #C9D6C3; }
.zeiten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
.zeiten dt { font-weight: 700; }
.zeiten dd { margin: 0; color: var(--gedaempft); }
.merkliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.merkliste li { position: relative; padding-left: 26px; }
.merkliste li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; background: var(--gruen); }
.leistung { padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--linie); scroll-margin-top: 90px; }
.leistung:last-child { border-bottom: 0; }
.stimmen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stimmen li { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 22px; font-size: 16px; }
.stimmen li strong { display: block; margin-top: 10px; font-weight: 700; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.team li { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; }
.team li strong { display: block; font-family: var(--display); font-size: 22px; }
.platzhalter { font-style: italic; color: var(--gedaempft); }

/* Schmale Schirme --------------------------------------------------------- */
@media (max-width: 1180px) {
  .karten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kopf-notiz { display: none; }
}
@media (max-width: 1000px) {
  .kopf-zeile { flex-wrap: wrap; min-height: 66px; padding-top: 10px; padding-bottom: 10px; }
  .marke { flex: 1 1 auto; }
  .nav-schalter { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; margin: 0; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 4px; }
  .nav a:not(.knopf) { display: block; padding: 12px 10px; }
  .kopf-rechts { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .merkmale ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projekte .wrap { grid-template-columns: 1fr; }
  .aufruf .wrap { grid-template-columns: 1fr; }
  .zweispaltig { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(40px, 12vw, 56px); }
  .karten { grid-template-columns: 1fr; }
  .merkmale ul { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr; }
  .moin { grid-template-columns: 1fr; }
  .portrait { width: 100%; }
  .portrait img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .hero-bilder { grid-template-columns: 1fr; }
  .hero-bilder .klein { aspect-ratio: auto; }
  .stempel { width: 118px; height: 118px; font-size: 17px; right: 0; top: 6px; }
  .hero-notiz { font-size: 22px; left: 0; top: -6px; }
  .hero-aktionen .knopf { width: 100%; justify-content: center; }
  .zeiten { grid-template-columns: 1fr; gap: 2px; }
  .zeiten dd { margin-bottom: 10px; }
}
