/* Felix Weyer Holz & Design – Gestaltung. Farben, Schriften und Abstände stehen oben als Variablen. */
@font-face { font-family: 'Sora'; src: url('/fonts/sora.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@view-transition { navigation: auto; }

:root {
  --paper: #f5f0e9;         /* Seitenhintergrund */
  --paper-2: #eae2d6;       /* abgesetzte Flächen */
  --card: #fffdf9;
  --ink: #1b1613;           /* Text */
  --muted: #6e655c;
  --line: #d9cfc1;
  --accent: #9b5b40;        /* das Braun aus dem Logo */
  --accent-dark: #7c4630;
  --accent-soft: #d89f7f;   /* Akzent auf dunklem Grund */
  --dark: #18130f;          /* dunkle Abschnitte */
  --dark-2: #231c17;
  --on-dark: #f3ece2;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1280px;
  --gap: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 150px);
  --radius: 18px;
  --radius-s: 10px;
  --header: 96px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, legend { font-family: var(--display); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 14px; font: 600 0.74rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.6em; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.eyebrow span { order: -1; font-weight: 500; letter-spacing: 0.08em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 300; border-radius: 8px; }
.skip:focus { left: 8px; }

/* --- Schaltflächen ---------------------------------------------------------- */
.btn { --bg: var(--accent); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 0.7em; background: var(--bg); color: var(--fg); font: 600 0.95rem/1 var(--display); letter-spacing: -0.005em; text-decoration: none; padding: 18px 26px; border: 0; border-radius: 999px; cursor: pointer; transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.btn::after { content: '→'; font-family: var(--sans); transition: transform 0.35s var(--ease); }
.btn:hover { --bg: var(--accent-dark); }
.btn:hover::after { transform: translateX(5px); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-small { padding: 13px 20px; font-size: 0.86rem; }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-light:hover { --bg: #fff; }
.btn-line { --bg: transparent; --fg: currentColor; color: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); }
.btn-line:hover { --bg: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { --bg: var(--paper-2); }
.link { color: inherit; font-weight: 600; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: color 0.2s; }
.link:hover { color: var(--accent); }

/* --- Jahresringe (Motiv aus dem Logo) ---------------------------------------- */
.rings { position: absolute; pointer-events: none; aspect-ratio: 1; background: currentColor; -webkit-mask: url('/media/ringe.svg') center / contain no-repeat; mask: url('/media/ringe.svg') center / contain no-repeat; opacity: 0.09; animation: turn 240s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* --- Lesefortschritt und Kopf ------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--ink); transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.4s var(--ease); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.logo img { width: 208px; margin-left: -8px; transition: filter 0.35s; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); }
.nav a:not(.btn) { position: relative; font: 500 0.9rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; padding: 10px 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; padding: 14px 10px; cursor: pointer; color: inherit; position: relative; z-index: 2; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 7px 0; transition: transform 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
main { padding-top: var(--header); }
.page-start main { padding-top: 0; }
/* Auf der Startseite liegt der Kopf zunächst hell auf dem dunklen Startbild. */
.page-start .site-header:not(.is-scrolled) { color: var(--on-dark); }
.page-start .site-header:not(.is-scrolled) .logo img, .nav-open .site-header .logo img { filter: brightness(0) invert(1); }

/* --- Startbild ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding-top: var(--header); }
.rings-hero { width: min(1500px, 120vw); right: -22%; top: -30%; color: var(--accent-soft); opacity: 0.1; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 88px); align-items: center; min-height: clamp(560px, calc(100svh - var(--header) - 150px), 780px); }
.hero .eyebrow { color: var(--accent-soft); }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 4.3rem); margin-bottom: 0.5em; text-wrap: normal; }
.hero-text { padding: clamp(32px, 5vw, 64px) 0; }
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.09s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.18s; }
@keyframes rise { from { transform: translateY(110%); } }
.hero .eyebrow, .hero .lead, .hero-actions { animation: fade 1s 0.35s var(--ease) both; }
.hero .hero-actions { animation-delay: 0.5s; }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } }
.hero .lead { color: color-mix(in srgb, var(--on-dark) 72%, transparent); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 2.2em; }

.wall { position: relative; align-self: stretch; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); animation: fade 1.4s 0.2s var(--ease) both; }
.wall-col { position: absolute; top: 0; bottom: 0; width: calc((100% - 28px) / 3); }
.wall-col:nth-child(2) { left: calc((100% - 28px) / 3 + 14px); }
.wall-col:nth-child(3) { right: 0; }
.wall-track { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; animation: wall-up 70s linear infinite; will-change: transform; }
.wall-col:nth-child(2) .wall-track { animation-name: wall-down; animation-duration: 84s; }
.wall-col:nth-child(3) .wall-track { animation-duration: 58s; }
.wall:hover .wall-track { animation-play-state: paused; }
.wall a { display: block; overflow: hidden; border-radius: 14px; background: var(--dark-2); }
.wall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.5s; filter: saturate(0.92) brightness(0.94); }
.wall a:hover img { transform: scale(1.06); filter: none; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid rgba(243, 236, 226, 0.16); }
.stats > div { padding: 26px 24px 30px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid rgba(243, 236, 226, 0.16); }
.stats dt { font: 500 0.7rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--on-dark) 55%, transparent); margin-bottom: 12px; }
.stats dd { margin: 0; font: 500 clamp(1.7rem, 3vw, 2.5rem)/1 var(--display); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.stats small { font: 400 0.8rem/1.3 var(--sans); letter-spacing: 0; color: var(--accent-soft); }
.stats .stats-text { font-size: 1rem; line-height: 1.45; letter-spacing: -0.01em; font-weight: 400; }

/* --- Abschnitte ----------------------------------------------------------------- */
.section { position: relative; padding: var(--section) 0; overflow: clip; }
.section-top0 { padding-top: 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--accent-soft); }
.section-head { max-width: 50em; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head h2 { margin: 0; }
.section-head .eyebrow:last-child { margin-bottom: 0; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.aside { margin: clamp(32px, 4vw, 56px) 0 0; color: var(--muted); max-width: 46em; }

.page-head { position: relative; padding: clamp(48px, 7vw, 104px) 0 var(--section); }
.page-head-plain { padding-bottom: clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); max-width: 14em; }
.page-head-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.page-head-in > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.page-head .btn { margin-top: 1.2em; }
/* Seitenkopf blendet beim Laden ein (ohne Skript, damit oben nie etwas unsichtbar bleibt) */
.page-head .wrap > *, .page-head-in > div > *, .project-head > * { animation: fade 0.9s var(--ease) both; }
.page-head .wrap > :nth-child(2), .page-head-in > div > :nth-child(2), .project-head > :nth-child(2) { animation-delay: 0.08s; }
.page-head .wrap > :nth-child(n + 3), .page-head-in > div > :nth-child(n + 3), .project-head > :nth-child(n + 3) { animation-delay: 0.16s; }
.page-head-in > img { animation: fade 1.1s 0.15s var(--ease) both; }
.page-head .page-head-in, .page-head .page-head-in > div { animation: none; }
.page-head .badge { margin-top: 2em; }

/* --- Leistungen als Verzeichnis ---------------------------------------------------- */
.index { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 3.2em 1fr; column-gap: 8px; align-items: baseline; padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: color-mix(in srgb, var(--ink) 38%, transparent); transition: color 0.4s, padding 0.5s var(--ease); }
.index-list a.is-on, .index-list a:hover, .index-list a:focus-visible { color: var(--ink); padding-left: 14px; }
.index-num { font: 500 0.82rem/1 var(--display); letter-spacing: 0.06em; color: var(--accent); }
.index-name { font: 500 clamp(1.8rem, 4.2vw, 3.6rem)/1.05 var(--display); letter-spacing: -0.04em; }
.index-desc { grid-column: 2; margin-top: 10px; font-size: 1rem; color: var(--muted); max-width: 30em; }
.index-thumb { display: none; }
.index-media { position: sticky; top: calc(var(--header) + 28px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.index-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.6s, transform 1.2s var(--ease); }
.index-media img.is-on { opacity: 1; transform: none; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.features > div { padding: 30px 28px 10px 0; border-bottom: 1px solid var(--line); }
.features > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.features p { color: var(--muted); font-size: 0.98rem; }
.features:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }

/* --- Projekte zum Durchschieben ------------------------------------------------------ */
.slider-section { padding-bottom: clamp(56px, 7vw, 104px); }
.slider-section .section-head { margin-bottom: clamp(28px, 4vw, 52px); }
.slider { --side: max(var(--gap), calc((100vw - var(--wrap)) / 2 + var(--gap))); display: flex; gap: clamp(14px, 1.8vw, 26px); overflow-x: auto; padding: 4px var(--side) 28px; scroll-padding-left: var(--side); scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.slider::-webkit-scrollbar { display: none; }
.slider.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider.is-drag a { pointer-events: none; }
.slide { position: relative; flex: none; width: clamp(240px, 25vw, 350px); scroll-snap-align: start; text-decoration: none; }
.slide-img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--dark-2); }
.slide-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1s var(--ease); -webkit-user-drag: none; user-select: none; }
.slide:hover .slide-img img { transform: scale(1.05); }
.slide-num { position: absolute; left: 16px; top: 14px; font: 500 0.78rem/1 var(--display); letter-spacing: 0.08em; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.slide .card-kat { color: var(--accent-soft); }
.slide-all { display: grid; place-items: center; text-align: center; aspect-ratio: 3 / 4; align-self: flex-start; border: 1px solid rgba(243, 236, 226, 0.22); border-radius: var(--radius); font: 500 1.3rem/1.2 var(--display); letter-spacing: -0.03em; padding: 24px; transition: background 0.3s, color 0.3s; }
.slide-all:hover { background: var(--accent); border-color: var(--accent); }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(243, 236, 226, 0.3); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer; transition: background 0.3s, border-color 0.3s; }
.slider-nav button:hover { background: var(--accent); border-color: var(--accent); }

/* --- Ablauf ------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); counter-reset: none; }
.steps li { position: relative; padding-top: 34px; }
.steps li::before { content: ''; position: absolute; left: 0; right: calc(clamp(20px, 3vw, 48px) * -1); top: 27px; height: 1px; background: var(--line); }
.steps li:last-child::before { right: 0; }
.steps span { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: -34px 0 30px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); font: 500 1.05rem/1 var(--display); transition: background 0.4s, color 0.4s, border-color 0.4s; }
.steps li:hover span { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* --- Hinweis auf den Projektplaner -------------------------------------------------------- */
.planner-teaser { padding: 0 0 var(--section); }
.planner-teaser-in { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 80px); align-items: center; background: var(--accent); color: #fff; border-radius: clamp(20px, 3vw, 36px); padding: clamp(32px, 6vw, 88px); max-width: calc(var(--wrap) - 2 * var(--gap)); width: calc(100% - 2 * var(--gap)); }
.planner-teaser-in::before { content: ''; position: absolute; width: 900px; aspect-ratio: 1; right: -320px; bottom: -420px; background: #fff; opacity: 0.1; -webkit-mask: url('/media/ringe.svg') center / contain no-repeat; mask: url('/media/ringe.svg') center / contain no-repeat; }
.planner-teaser .eyebrow { color: #f6d9c9; }
.planner-teaser p:not(.eyebrow) { max-width: 34em; opacity: 0.94; margin-bottom: 1.8em; }
.planner-teaser-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.planner-teaser-steps li { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 10px 22px 10px 10px; font: 500 1rem/1 var(--display); letter-spacing: -0.01em; width: fit-content; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.planner-teaser-steps li:nth-child(2) { margin-left: 8%; } .planner-teaser-steps li:nth-child(3) { margin-left: 16%; } .planner-teaser-steps li:nth-child(4) { margin-left: 24%; } .planner-teaser-steps li:nth-child(5) { margin-left: 32%; }
.planner-teaser-steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--accent-dark); font-size: 0.9rem; }

/* --- Projektkarten ------------------------------------------------------------------------ */
/* Raster in Reihen: so stehen die Projekte von links nach rechts von neu nach alt */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 3.6vw, 52px) clamp(16px, 2.4vw, 34px); }
.card { display: block; text-decoration: none; }
.card.is-hidden { display: none; }
.card-img { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); aspect-ratio: 4 / 5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-go { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 0.8rem/1 var(--display); transform: translate(-50%, -50%) scale(0.4); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s; }
.card:hover .card-go, .card:focus-visible .card-go { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.card-kat { display: block; margin-top: 18px; font: 600 0.7rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.card-title { display: block; margin-top: 8px; font: 500 1.22rem/1.25 var(--display); letter-spacing: -0.025em; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.2em; }
.chip { font: 500 0.88rem/1 var(--display); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; cursor: pointer; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.chip span { color: var(--muted); margin-left: 4px; font-size: 0.82em; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-on span { color: #c9bfb2; }

/* --- Bewertungen ----------------------------------------------------------------------------- */
.rings-reviews { width: 1100px; left: -420px; bottom: -480px; color: var(--accent-soft); }
.reviews-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.reviews-side { position: sticky; top: calc(var(--header) + 32px); }
.rating { display: flex; align-items: center; gap: 22px; text-decoration: none; margin: 1.6em 0 2em; }
.rating strong { font: 500 clamp(4.4rem, 9vw, 7.4rem)/0.9 var(--display); letter-spacing: -0.06em; }
.rating > span { display: grid; gap: 8px; }
.rating small { font-size: 0.9rem; opacity: 0.7; }
.stars { color: #e5a93a; letter-spacing: 3px; font-size: 1.05rem; white-space: nowrap; font-family: var(--sans); }
.stars span { color: color-mix(in srgb, currentColor 25%, transparent); }
.reviews { columns: 2; column-gap: clamp(14px, 2vw, 24px); }
.review { break-inside: avoid; margin: 0 0 clamp(14px, 2vw, 24px); padding: clamp(22px, 2.6vw, 32px); border: 1px solid rgba(243, 236, 226, 0.13); border-radius: var(--radius); background: rgba(243, 236, 226, 0.04); transition: background 0.3s, border-color 0.3s; }
.review:hover { background: rgba(243, 236, 226, 0.07); border-color: rgba(243, 236, 226, 0.25); }
.review blockquote { margin: 16px 0 24px; font-size: 0.98rem; line-height: 1.62; color: #e7dfd3; }
.review figcaption { display: flex; align-items: center; gap: 12px; font: 500 0.92rem/1.2 var(--display); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font: 500 0.95rem/1 var(--display); flex: none; }
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; text-decoration: none; transition: border-color 0.2s; }
.badge:hover { border-color: var(--accent); }

/* --- Über mich, Karte, Aufruf ------------------------------------------------------------------ */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.about-teaser img { width: 100%; border-radius: var(--radius); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); }
.about-teaser:has(.portrait) { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
/* Solange kein Porträt hinterlegt ist (public/media/portrait.jpg), stehen die Texte allein. */
.about-teaser:not(:has(.about-img)), .page-head-in:not(:has(> img, > .about-img)) { grid-template-columns: minmax(0, 1fr); max-width: 980px; margin-left: 0; }
.page-head-in:not(:has(> img, > .about-img)) { margin: 0 auto; max-width: var(--wrap); }
.page-head-in:not(:has(> img, > .about-img)) > div { max-width: 860px; }
.visit { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.facts { margin: 1.8em 0 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.facts dt { font: 600 0.68rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 7px; }
.facts dd { margin: 0; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.facts a:hover { border-bottom-color: var(--accent); }
.map { position: relative; min-height: clamp(340px, 42vw, 500px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map::before { content: ''; position: absolute; width: 900px; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; background: var(--accent); opacity: 0.16; -webkit-mask: url('/media/ringe.svg') center / contain no-repeat; mask: url('/media/ringe.svg') center / contain no-repeat; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ask { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 28px; text-align: center; }
.map-addr { margin: 0 0 6px; font-size: 1.05rem; }
.map-always { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.map-note { font-size: 0.82rem; color: var(--muted); max-width: 34em; margin: 0; }

.cta { padding: 0 0 var(--section); }
.cta-in { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; background: var(--accent); color: #fff; border-radius: clamp(20px, 3vw, 36px); padding: clamp(32px, 5vw, 72px); max-width: calc(var(--wrap) - 2 * var(--gap)); width: calc(100% - 2 * var(--gap)); }
.cta-in::before { content: ''; position: absolute; width: 800px; aspect-ratio: 1; right: -260px; top: -300px; background: #fff; opacity: 0.1; -webkit-mask: url('/media/ringe.svg') center / contain no-repeat; mask: url('/media/ringe.svg') center / contain no-repeat; }
.cta-in > * { position: relative; }
.cta .eyebrow { color: #f6d9c9; }
.cta h2 { margin-bottom: 0.4em; max-width: 16em; }
.cta p { max-width: 34em; margin: 0; opacity: 0.94; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-phone { font-size: 0.95rem; color: #fff; text-underline-offset: 4px; }
.section-tint + .cta, .section-dark + .cta { padding-top: var(--section); }

/* --- Projektseite ---------------------------------------------------------------------------- */
.project-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 56px); }
.project-head h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); max-width: 16em; }
.crumbs, .project-meta { font: 600 0.7rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.crumbs { margin-bottom: 1.8em; }
.crumbs a { color: var(--accent); text-decoration: none; }
.project-meta { margin: 0; }
.project-body { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.45fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
.project-text { position: sticky; top: calc(var(--header) + 32px); font-size: 1.06rem; }
.project-cta { margin-top: 2em; }
.gallery { columns: 2; column-gap: 16px; }
.gallery.is-single { columns: 1; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform 0.8s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.project-nav a { text-decoration: none; font: 500 clamp(1.1rem, 2vw, 1.5rem)/1.25 var(--display); letter-spacing: -0.03em; transition: color 0.2s; }
.project-nav a:hover { color: var(--accent); }
.project-nav a span { display: block; font: 600 0.68rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.project-nav .is-next { text-align: right; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(16, 12, 10, 0.96); display: grid; place-items: center; padding: 24px; animation: fade-in 0.25s both; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
.lightbox button:hover { background: var(--accent); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: rgba(255, 255, 255, 0.7); font: 500 0.8rem/1 var(--display); letter-spacing: 0.1em; }

/* --- Formularfelder ----------------------------------------------------------------------------- */
.field { display: grid; gap: 8px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row:has(.field-short) { grid-template-columns: 1fr 10em; }
label { font: 600 0.84rem/1.3 var(--display); letter-spacing: -0.005em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 15px; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(155, 91, 64, 0.15); }
textarea { resize: vertical; min-height: 130px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font: 400 0.92rem/1.5 var(--sans); color: var(--muted); cursor: pointer; }
.check input { width: 19px; height: 19px; flex: none; margin: 2px 0 0; }
.check a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 13px 16px; background: #fbe9e4; border: 1px solid #e5b5a6; border-radius: var(--radius-s); color: #7a2b17; font-size: 0.94rem; }

/* --- Projektplaner --------------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info { position: sticky; top: calc(var(--header) + 28px); }
.contact-info h2 { font-size: 1.7rem; margin-bottom: 0.3em; }
.contact-info .badge { margin-top: 1.6em; }
.planner { display: grid; gap: 26px; background: var(--card); border: 1px solid var(--line); border-radius: clamp(18px, 2.4vw, 28px); padding: clamp(20px, 3.6vw, 48px); box-shadow: 0 40px 80px -60px rgba(27, 22, 19, 0.5); }
.planner fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.planner legend { padding: 0; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 0.7em; }
.planner-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; justify-content: space-between; gap: 8px; }
.planner-steps li { display: flex; align-items: center; gap: 9px; font: 500 0.82rem/1 var(--display); color: var(--muted); transition: color 0.3s; }
.planner-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-size: 0.78rem; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.planner-steps li.is-on { color: var(--ink); }
.planner-steps li.is-on span { background: var(--ink); border-color: var(--ink); color: #fff; }
.planner-steps li.is-done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.planner-bar { height: 3px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.planner-bar span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 3px; transition: width 0.5s var(--ease); }
.planner-step { display: none; }
.planner-step.is-on { display: grid; gap: 20px; animation: step-in 0.5s var(--ease) both; }
.planner-step.is-on > legend { float: left; width: 100%; }
@keyframes step-in { from { opacity: 0; transform: translateX(22px); } }
.planner-hint { margin: -8px 0 0; font-size: 0.92rem; color: var(--muted); }
.planner-sub { font-size: 1.05rem; margin: 14px 0 0; }
.planner-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.planner-actions #p-back { margin-right: auto; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { position: relative; cursor: pointer; }
.tile input, .pick input { position: absolute; opacity: 0; pointer-events: none; }
.tile > span { display: grid; gap: 14px; align-content: space-between; height: 100%; min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; font: 500 0.92rem/1.25 var(--display); letter-spacing: -0.015em; transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s; }
.tile svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s; }
.tile:hover > span { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(27, 22, 19, 0.6); }
.tile input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile input:checked + span svg { stroke: var(--accent-soft); }
.tile input:focus-visible + span, .pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { position: relative; cursor: pointer; }
.pick > span { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 0.9rem/1 var(--display); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.pick:hover > span { border-color: var(--ink); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick-swatch > span { padding-left: 8px; }
.pick-swatch i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; max-width: 560px; }
.field-count { max-width: 16em; }
.unit { position: relative; }
.unit input { padding-right: 46px; }
.unit span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; pointer-events: none; }
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px) 20px; color: var(--muted); font: 400 0.92rem/1.4 var(--sans); cursor: pointer; transition: border-color 0.25s, background 0.25s; }
.drop svg { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; margin-bottom: 6px; }
.drop strong { font: 600 1.05rem/1.2 var(--display); color: var(--ink); }
.drop:hover, .drop.is-over { border-color: var(--accent); background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; border-radius: var(--radius-s); overflow: hidden; background: var(--paper-2); }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb button { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(27, 22, 19, 0.78); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.thumb button:hover { background: var(--accent); }
.summary { display: grid; gap: 0; background: var(--paper); border-radius: var(--radius-s); padding: 6px 18px; font-size: 0.94rem; }
.summary:empty { display: none; }
.summary div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary dt, .summary b { font: 600 0.68rem/1.6 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* --- Texte, Fragen --------------------------------------------------------------------------------- */
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 0.6em; letter-spacing: -0.025em; }
.prose a { color: var(--accent-dark); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 54px 28px 0; position: relative; font: 500 clamp(1.15rem, 2vw, 1.5rem)/1.25 var(--display); letter-spacing: -0.03em; transition: color 0.2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px; border: 1px solid var(--line); border-radius: 50%; font: 300 1.4rem/1 var(--sans); color: var(--ink); transition: transform 0.3s var(--ease), background 0.3s, color 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq details p { color: var(--muted); max-width: 42em; margin: -6px 0 30px; }

/* --- Fuß ---------------------------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--dark); color: #cdc3b6; font-size: 0.95rem; padding: clamp(56px, 8vw, 110px) 0 28px; }
.rings-footer { width: 1200px; right: -420px; top: -360px; color: var(--accent-soft); opacity: 0.08; }
.site-footer .wrap { position: relative; }
.footer-cta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 28px; text-decoration: none; color: var(--on-dark); padding-bottom: clamp(40px, 6vw, 80px); margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid rgba(243, 236, 226, 0.14); }
.footer-cta .eyebrow { grid-column: 1 / -1; color: var(--accent-soft); margin: 0 0 8px; }
.footer-cta-text { font: 500 clamp(2rem, 5.6vw, 4.6rem)/1.04 var(--display); letter-spacing: -0.04em; max-width: 12em; text-wrap: balance; transition: color 0.3s; }
.footer-cta-go { display: grid; place-items: center; width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); transition: transform 0.5s var(--ease), background 0.3s; }
.footer-cta:hover .footer-cta-text { color: var(--accent-soft); }
.footer-cta:hover .footer-cta-go { transform: rotate(-45deg) scale(1.06); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { width: 230px; filter: brightness(0) invert(1); opacity: 0.94; margin: -14px 0 14px -8px; }
.site-footer h2 { font: 600 0.7rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.footer-in a:hover, .footer-legal a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(243, 236, 226, 0.12); font-size: 0.86rem; color: #9d9387; }
.footer-legal a { margin-left: 22px; }
.footer-legal a:first-child { margin-left: 0; }
.page-kontakt .footer-cta, .page-admin .footer-cta, .page-danke .footer-cta { display: none; }

/* Schnellkontakt am unteren Rand, nur auf dem Handy */
.dock { display: none; }

/* --- Einblenden beim Scrollen --------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .about-img.reveal { clip-path: inset(0 0 100% 0 round var(--radius)); transform: none; opacity: 1; transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .about-img.reveal.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* --- Verwaltung ------------------------------------------------------------------------------------ */
.admin { padding: clamp(28px, 4vw, 56px) 0 var(--section); min-height: 70vh; }
.admin h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.admin h2 { font-size: 1.45rem; }
.admin .btn::after { display: none; }
.a-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.a-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.a-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 32px); margin-bottom: 20px; }
.a-list { display: grid; gap: 10px; }
.a-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 16px 10px 10px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.a-item:hover { border-color: var(--accent); }
.a-item img, .a-item .a-noimg { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.a-item strong { display: block; font: 500 1.05rem/1.3 var(--display); letter-spacing: -0.02em; }
.a-item small { color: var(--muted); }
.a-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: #e3efe3; color: #23572a; white-space: nowrap; }
.a-tag.is-draft { background: #f3e7cf; color: #7a5a12; }
.a-form { display: grid; gap: 18px; }
.a-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.a-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.a-photo { position: relative; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--paper-2); }
.a-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.a-photo.is-cover::before { content: 'Titelbild'; position: absolute; left: 6px; top: 6px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.a-photo div { display: flex; }
.a-photo button { flex: 1; border: 0; border-top: 1px solid var(--line); background: var(--card); padding: 9px 0; font: inherit; font-size: 0.95rem; cursor: pointer; }
.a-photo button + button { border-left: 1px solid var(--line); }
.a-photo button:hover:not([disabled]) { background: var(--paper-2); }
.a-photo button[disabled] { opacity: 0.3; cursor: default; }
.a-drop { display: grid; place-items: center; text-align: center; gap: 6px; border: 2px dashed var(--line); border-radius: var(--radius-s); padding: 30px 20px; color: var(--muted); cursor: pointer; font-weight: 400; transition: border-color 0.2s, background 0.2s; }
.a-drop:hover, .a-drop.is-over { border-color: var(--accent); background: #fff; }
.a-drop strong { color: var(--ink); }
.a-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.a-msg { padding: 12px 14px; border-radius: var(--radius-s); background: #e3efe3; color: #23572a; font-size: 0.94rem; }
.a-msg.is-error { background: #fbe9e4; color: #7a2b17; }
.a-danger { --bg: transparent; --fg: #8c2f1b; box-shadow: inset 0 0 0 1px #e5b5a6; }
.a-danger:hover { --bg: #fbe9e4; }
.a-review { display: grid; grid-template-columns: 1fr 6em auto; gap: 10px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.a-review textarea { grid-column: 1 / -1; min-height: 80px; }
.a-req { padding: 20px 0; border-top: 1px solid var(--line); }
.a-req p { margin: 8px 0 0; white-space: pre-wrap; }
.a-req dl { margin: 10px 0 0; display: grid; gap: 4px; font-size: 0.94rem; }
.a-req dl div { display: grid; grid-template-columns: 7em 1fr; gap: 10px; }
.a-req dt { color: var(--muted); }
.a-req dd { margin: 0; }
.a-req-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.a-req-photos a { display: block; width: 110px; height: 110px; border-radius: var(--radius-s); overflow: hidden; background: var(--paper-2); }
.a-req-photos img { width: 100%; height: 100%; object-fit: cover; }

/* --- Kleine Bildschirme -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .features > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .steps { row-gap: 44px; }
  .steps li:nth-child(2)::before { right: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .project-body { grid-template-columns: 1fr; }
  .project-text { position: static; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-side { position: static; }
  .contact { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}
@media (max-width: 900px) {
  :root { --header: 82px; }
  .nav-toggle { display: block; }
  .logo { position: relative; z-index: 2; }
  .logo img { width: 178px; }
  .rings-hero { width: 300vw; right: auto; left: -100vw; top: -70vw; opacity: 0.12; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; background: var(--dark); color: var(--on-dark); padding: var(--header) var(--gap) 32px; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -0.035em; padding: 14px 0; border-bottom: 1px solid rgba(243, 236, 226, 0.12); transform: translateY(16px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.5s; }
  .nav a:not(.btn)::after { display: none; }
  .nav.is-open a { transform: none; opacity: 1; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.04s; } .nav.is-open a:nth-child(3) { transition-delay: 0.08s; } .nav.is-open a:nth-child(4) { transition-delay: 0.12s; } .nav.is-open a:nth-child(5) { transition-delay: 0.16s; }
  .nav .btn { margin-top: 28px; padding: 20px 26px; font-size: 1rem; }
  .nav-open .site-header { color: var(--on-dark); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
  .nav-open { overflow: hidden; }

  .hero-in { grid-template-columns: 1fr; height: auto; padding-top: clamp(28px, 6vw, 56px); gap: 36px; }
  .wall { margin: 0 calc(var(--gap) * -1) 34px; -webkit-mask: none; mask: none; }
  .wall-col, .wall-col:nth-child(2) { position: static; width: auto; }
  .hero-text { padding: 0; }
  .wall-col:nth-child(3) { display: none; }
  .wall-col + .wall-col { margin-top: 10px; }
  .wall-track { flex-direction: row; width: max-content; gap: 10px; padding: 0 10px 0 0; animation-name: wall-left; animation-duration: 48s; }
  .wall-col:nth-child(2) .wall-track { animation-name: wall-right; animation-duration: 56s; }
  .wall img { width: max(132px, 30vw); }   /* vier Bilder sind immer breiter als der Bildschirm – so läuft die Reihe nahtlos */
  .wall a { border-radius: 12px; }
  @keyframes wall-left { to { transform: translateX(-50%); } }
  @keyframes wall-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 20px 16px 22px 0; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid rgba(243, 236, 226, 0.16); }
  .stats > div + div { padding-left: 16px; }
  .stats > div:nth-child(3) { padding-left: 0; }

  .page-head-in, .about-teaser, .visit, .index, .planner-teaser-in { grid-template-columns: 1fr; }
  .page-head-in > img { max-width: 560px; aspect-ratio: 5 / 4; }
  .index-media { display: none; }
  .index-list a { grid-template-columns: 2.4em 1fr 76px; align-items: center; }
  .index-list a.is-on, .index-list a:hover { padding-left: 0; }
  .index-list a { color: var(--ink); }
  .index-desc { grid-column: 2; font-size: 0.94rem; }
  .index-thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 76px; height: 96px; object-fit: cover; border-radius: 10px; }
  .planner-teaser-steps li { margin-left: 0 !important; }
  .planner-steps li { font-size: 0; gap: 0; }

  .dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; display: grid; grid-template-columns: 1fr 1.5fr; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(24, 19, 15, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6); transform: translateY(140%); transition: transform 0.5s var(--ease); }
  .dock.is-on { transform: none; }
  .dock a { display: grid; place-items: center; padding: 14px 10px; border-radius: 999px; color: #fff; text-decoration: none; font: 600 0.9rem/1 var(--display); }
  .dock-main { background: var(--accent); }
  .page-kontakt .dock, .page-admin .dock, .nav-open .dock { display: none; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .reviews, .gallery { columns: 1; }
  .features, .steps { grid-template-columns: 1fr; }
  .features > div + div { padding-left: 0; border-left: 0; }
  .steps li::before { display: none; }
  .steps li { padding-top: 0; }
  .steps span { margin: 0 0 18px; }
  .field-row, .field-row:has(.field-short) { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav .is-next { text-align: left; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile > span { min-height: 118px; padding: 14px; }
  .planner-actions .btn { flex: 1; }
  .planner-actions #p-back { flex: 0 0 auto; }
  .slider-nav { display: none; }
  .slide { width: 68vw; }
  .rating { gap: 16px; }
  .a-item { grid-template-columns: 60px 1fr; }
  .a-item img, .a-item .a-noimg { width: 60px; height: 60px; }
  .a-item .a-tag { grid-column: 2; justify-self: start; }
  .a-review { grid-template-columns: 1fr 5em; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .wall-track, .rings { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; clip-path: none !important; }
  @view-transition { navigation: none; }
}
