/* c-wiessner.de – ohne Framework, ohne externe Ressourcen */
:root {
  --blue: #2e3a96;
  --blue-d: #222c78;
  --red: #e8333a;
  --green: #3aa935;
  --ink: #1d2233;
  --muted: #5b6275;
  --line: #e3e6ee;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,25,50,.06), 0 8px 24px rgba(20,25,50,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 56px; height: auto; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--blue); font-size: .82rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a[aria-current] { background: var(--bg-alt); color: var(--blue); }
.nav .nav-tel { background: var(--blue); color: #fff; margin-left: 8px; white-space: nowrap; }
.nav .nav-tel:hover { background: var(--blue-d); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c9262d; }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: linear-gradient(#fff, #fbfbfc); overflow: hidden; }
.hero-text { padding-top: 56px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--green); margin: 0 0 10px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto 24px; }
.hero .cta { justify-content: center; }
.hero-img img { width: 100%; max-width: 1600px; margin: 0 auto; }
.hero .cta { position: relative; z-index: 1; margin-bottom: 8px; }

/* Facts */
.facts { background: var(--blue); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { padding: 22px 16px; border-left: 1px solid rgba(255,255,255,.15); }
.facts-grid div:first-child { border-left: 0; }
.facts strong { display: block; font-size: 1.25rem; }
.facts span { font-size: .9rem; opacity: .85; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); }
.section-title::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--green) 0 33%, var(--blue) 33% 66%, var(--red) 66%); }
.section-lead { color: var(--muted); margin: 0 0 36px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,25,50,.06), 0 14px 32px rgba(20,25,50,.1); }
.card h3 { font-size: 1.15rem; margin-top: 14px; }
.card p { color: var(--muted); margin: 0 0 12px; font-size: .97rem; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: #eef0fa; display: grid; place-items: center; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n+2) .card-icon { background: #fdeced; } .card:nth-child(3n+2) .card-icon svg { stroke: var(--red); }
.card:nth-child(3n) .card-icon { background: #ebf6ea; } .card:nth-child(3n) .card-icon svg { stroke: var(--green); }
.tags { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .82rem; color: var(--ink); }
.more { margin-top: auto; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Split + Gallery */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li { position: relative; padding: 6px 0 6px 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery picture { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery picture:not(.g-wide) { aspect-ratio: 3 / 4; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 28px; margin-top: 28px; }
.person { margin: 0; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow); }
.person img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.person strong { display: block; font-size: 1.1rem; }
.person span { color: var(--muted); font-size: .94rem; }

/* Job */
.job { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: center; }
.job .checklist { margin: 0; }

/* Contact band */
.contact-band { background: linear-gradient(120deg, var(--blue), var(--blue-d)); color: #fff; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.band h2 { margin: 0 0 4px; }
.band p { margin: 0; opacity: .85; }

/* Footer */
.site-footer { background: #151a2b; color: #c4c9d8; font-size: .94rem; padding-top: 56px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid img { background: #fff; border-radius: 8px; padding: 6px; width: 64px; margin-bottom: 10px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }

/* Unterseiten */
.page-head { background: var(--bg-alt); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { color: var(--blue); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head .lead { margin: 0; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; }
.hint { color: var(--muted); font-size: .9rem; background: #fff8e6; border-left: 3px solid #f0b400; padding: 8px 12px; border-radius: 4px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact-info { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.contact-info h2 { font-size: 1.2rem; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfd4e0; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(46,58,150,.2); border-color: var(--blue); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.ok { background: #ebf6ea; color: #1f6b1c; }
.alert.err { background: #fdeced; color: #9b1c21; }

/* Responsive */
@media (max-width: 960px) {
  .split, .job, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid div:nth-child(3) { border-left: 0; }
  .contact-info { position: static; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav .nav-tel { margin: 8px 0 0; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .brand small { display: none; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-img img { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
