/* Swipa Webseiten (01.12.2026): gemeinsames Design aller Firmen-Webseiten. Akzentfarbe je Firma über --acc. */
*, *::before, *::after { box-sizing: border-box; }
:root { --acc: #0a66ff; --r: 22px; --r-sm: 14px; --max: 1180px; --sec: clamp(64px, 9vw, 120px);
  --bg: #fff; --bg2: #f5f5f7; --tx: #1d1d1f; --tx2: #515154; --tx3: #86868b; --line: #e3e3e8; --card: #fff; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06); }
body.look-warm { --bg: #fbf8f4; --bg2: #f3ede5; --tx: #24201c; --tx2: #5b524a; --tx3: #8f857b; --line: #e7ded3; --card: #fff; }
body.look-dunkel { --bg: #0f0f11; --bg2: #18181b; --tx: #f5f5f7; --tx2: #c7c7cc; --tx3: #8e8e93; --line: #2c2c30; --card: #1c1c1f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.font-serif h1, body.font-serif h2, body.font-serif h3, body.font-serif blockquote { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
body.font-rund { font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; color: var(--tx); }
h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.sec { padding: var(--sec) 0; }
.sec.alt { background: var(--bg2); }
.kicker { color: var(--acc); font-weight: 650; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.intro { color: var(--tx2); font-size: 19px; max-width: 700px; margin-bottom: 40px; }
.prose { color: var(--tx2); font-size: 18px; }
.center { text-align: center; } .center .intro { margin-inline: auto; }
.small { font-size: 13px; color: var(--tx3); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; text-decoration: none !important; white-space: nowrap; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.primary { background: var(--acc); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--acc) 35%, transparent); }
.btn.ghost { background: color-mix(in srgb, var(--tx) 6%, transparent); color: var(--tx); }
.btn.light { background: #fff; color: #111; }
.btn.outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Kopf */
.preview-bar { background: #ffcc00; color: #000; text-align: center; font-size: 13px; font-weight: 600; padding: 6px; }
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--tx); font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none !important; min-width: 0; }
.brand img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--tx2); font-size: 15px; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--tx); background: color-mix(in srgb, var(--tx) 6%, transparent); }
.nav .btn { margin-left: 8px; }
.nav-tg { display: none; background: none; border: 0; color: var(--tx); padding: 8px; cursor: pointer; }
.nav-tg .i { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .nav-tg { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 19px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* Titelbild */
.b-hero { position: relative; overflow: hidden; }
.b-hero.has-img { min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; padding: 140px 0 clamp(56px, 8vw, 100px); }
.b-hero.has-img .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.b-hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.72) 100%); }
.b-hero .wrap { position: relative; z-index: 1; }
.b-hero.has-img h1 { color: #fff; max-width: 900px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.b-hero .lead { font-size: clamp(19px, 2.2vw, 24px); max-width: 640px; margin-bottom: 32px; }
.b-hero.has-img .lead { color: rgba(255,255,255,.9); }
.b-hero.has-img .btn.ghost { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); }
.b-hero.plain { padding: clamp(80px, 12vw, 160px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.b-hero.plain .lead { margin-inline: auto; color: var(--tx2); }
.b-hero.plain .btns { justify-content: center; }
.hero-img { margin-top: 56px; border-radius: var(--r); box-shadow: var(--shadow); width: 100%; max-height: 640px; object-fit: cover; }

/* Bild und Text */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.grid2.rev .media { order: 2; }
.media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.copy .btn { margin-top: 12px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } .grid2.rev .media { order: 0; } .media img { aspect-ratio: 4 / 3; } }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 18px; }
.cards:has(> :nth-child(6)) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lcard { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.lcard:hover { transform: translateY(-4px); }
.lc-img { aspect-ratio: 4 / 3; overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.lcard:hover .lc-img img { transform: scale(1.05); }
.lc-b { padding: 22px 22px 26px; }
.lc-b p { color: var(--tx2); font-size: 16px; }
.nr { display: block; color: var(--acc); font-weight: 700; font-size: 13px; letter-spacing: .1em; margin-bottom: 8px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.more .i { width: 15px; height: 15px; }

/* Galerie */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 14px; }
.gal figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--bg2); }
.gal figure.big { grid-column: span 2; grid-row: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; cursor: zoom-in; }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .25s; }
.gal figure:hover figcaption { opacity: 1; }
@media (max-width: 760px) { .gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .gal figure.big { grid-column: span 2; grid-row: span 1; } .gal figcaption { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 10px; }

/* Kennzahlen */
.b-zahlen { padding: 56px 0; border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 32px; text-align: center; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; line-height: 1; color: var(--tx); margin-bottom: 8px; }
.stat span { color: var(--tx3); font-size: 15px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.tm { text-align: center; }
.tm img, .tm .ph { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; box-shadow: var(--shadow); }
.tm .ph { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--acc) 14%, var(--bg2)); color: var(--acc); font-weight: 700; font-size: 38px; }
.tm b { display: block; font-size: 18px; } .tm span { color: var(--tx3); font-size: 15px; }

/* Organigramm */
.oc-tree { overflow-x: auto; display: flex; justify-content: center; padding: 10px 0 20px; }
.oc-tree ul { display: flex; justify-content: center; padding: 22px 0 0; margin: 0; list-style: none; position: relative; }
.oc-tree > ul { padding-top: 0; }
.oc-tree li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 22px 10px 0; }
.oc-tree > ul > li { padding-top: 0; }
.oc-tree li::before, .oc-tree li::after { content: ''; position: absolute; top: 0; width: 50%; height: 22px; border-top: 1.5px solid var(--line); }
.oc-tree li::before { right: 50%; } .oc-tree li::after { left: 50%; border-left: 1.5px solid var(--line); }
.oc-tree li:only-child::before, .oc-tree li:only-child::after { border-top: 0; }
.oc-tree li:first-child::before, .oc-tree li:last-child::after { border-top: 0; }
.oc-tree li:last-child::before { border-right: 1.5px solid var(--line); border-radius: 0 8px 0 0; }
.oc-tree li:first-child::after { border-radius: 8px 0 0 0; }
.oc-tree > ul > li::before, .oc-tree > ul > li::after { display: none; }
.oc-tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1.5px solid var(--line); }
.oc-n { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 14px 18px; min-width: 170px; text-align: center; border-top: 3px solid var(--acc); }
.oc-n b { display: block; font-size: 15px; } .oc-n span { color: var(--tx3); font-size: 14px; }

/* Partner */
.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.pc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.pc h3 { font-size: 22px; }
.pc p { color: var(--tx2); font-size: 15px; }
.pc-k { color: var(--acc) !important; font-weight: 650; font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.pc-o { color: var(--tx3) !important; margin-top: auto; }

/* Schritte (Text mit 1. 2. 3.) */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.steps li { counter-increment: st; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 24px; position: relative; }
.steps li::before { content: counter(st); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); font-weight: 700; margin-bottom: 16px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; color: var(--tx); }
.steps span { color: var(--tx2); font-size: 15px; }

/* Zitat */
.b-zitat blockquote { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -.02em; font-weight: 600; text-align: center; }
.b-zitat .who { text-align: center; color: var(--tx3); }

/* Aufruf */
.b-cta { padding: 0 0 var(--sec); }
.sec + .b-cta, .b-zahlen + .b-cta { padding-top: 0; }
main > .b-cta:first-child { padding-top: var(--sec); }
.cta-box { background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #000)); color: #fff; border-radius: calc(var(--r) + 8px); padding: clamp(36px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-box h2 { color: #fff; margin-bottom: 10px; font-size: clamp(28px, 3.6vw, 44px); }
.cta-box p { color: rgba(255,255,255,.85); font-size: 18px; margin: 0; max-width: 560px; }

/* Kontakt */
.contact { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.contact .i { width: 22px; height: 22px; color: var(--acc); margin-top: 3px; }
.contact a { color: var(--tx); }
.form { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tx2); }
.form input, .form textarea { font: inherit; font-size: 16px; color: var(--tx); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent); }
.form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form .msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #1a9b4b 12%, transparent); color: #137a3a; font-weight: 600; }
.form .msg.err { background: color-mix(in srgb, #d92d20 12%, transparent); color: #b42318; }
@media (max-width: 560px) { .form .f2 { grid-template-columns: 1fr; } }

/* Rechtliches */
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal h3 { margin-top: 2em; }
.legal p { color: var(--tx2); }

/* Fuss */
.foot { background: var(--bg2); padding: 56px 0 28px; font-size: 15px; color: var(--tx2); }
.f-cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.f-name { display: block; color: var(--tx); font-size: 17px; margin-bottom: 8px; }
.foot a { color: var(--tx2); }
.f-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; font-size: 13px; color: var(--tx3); flex-wrap: wrap; }
.f-bottom .swipa { font-weight: 700; color: var(--tx); letter-spacing: -.01em; font-size: 14px; }
@media (max-width: 760px) { .f-cols { grid-template-columns: 1fr; } }

/* Einblenden beim Scrollen: Grundzustand sichtbar, nur nach dem Laden unterhalb des Fensters versteckt */
.rv { transition: opacity .7s ease, transform .7s ease; }
.rv.pre { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .rv, .rv.pre { transition: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }
