/* Rhenion GmbH – Farben aus dem Logo: Navy #1f2f3e, Blau #0661ac */
:root {
    --navy: #1f2f3e;
    --navy-900: #15212c;
    --blue: #0661ac;
    --blue-600: #05558f;
    --blue-100: #e6f0f9;
    --ink: #1f2f3e;
    --muted: #5b6b7a;
    --line: #e3e8ee;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --radius: 6px;
    --skew: 42deg; /* Neigung der Logo-Schrägen */
    --container: 1160px;
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before {
    content: ""; width: 22px; height: 10px; background: var(--blue);
    transform: skewX(var(--skew));
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.accent { color: var(--blue); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px; border-radius: var(--radius); border: 2px solid transparent;
    font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: .95rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { color: var(--navy); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-100); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(31,47,62,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.mark { width: 44px; height: auto; flex: none; }
.mark-dark { fill: var(--navy); }
.mark-blue { fill: var(--blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: -0.01em; }
.brand-name strong { font-weight: 700; }
.brand-claim { font-size: .74rem; letter-spacing: .18em; color: var(--muted); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; position: relative; }
.site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags a {
    display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    font-size: .9rem; color: var(--navy); text-decoration: none; background: #fff;
}
.hero-tags a:hover { border-color: var(--blue); color: var(--blue); }

/* Schräge Streifen nach dem Vorbild des Logos */
.hero-stripes, .cta-stripes { position: absolute; inset: 0; pointer-events: none; }
.hero-stripes span, .cta-stripes span { position: absolute; top: -10%; bottom: -10%; transform: skewX(var(--skew)); }
.hero-stripes span:first-child { right: 6%; width: 180px; background: var(--blue); opacity: .9; }
.hero-stripes span:last-child { right: calc(6% - 230px); width: 180px; background: var(--navy); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }

.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service-card {
    grid-column: span 2; position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 30px 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
.service-card::before {
    content: ""; position: absolute; top: 0; left: 18px; width: 54px; height: 5px;
    background: var(--blue); transform: skewX(var(--skew));
}
.service-card:hover { border-color: #c9d6e3; box-shadow: 0 14px 36px rgba(31,47,62,.08); transform: translateY(-2px); }
.service-card p { color: var(--muted); font-size: .98rem; }
.service-card p:last-child { margin-bottom: 0; }
.service-num { display: block; font-size: .85rem; font-weight: 600; color: var(--blue); margin-bottom: 14px; letter-spacing: .08em; }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about-text p { color: var(--muted); }
.quote {
    margin: 0; position: relative; background: var(--navy); color: #fff;
    border-radius: var(--radius); padding: 44px 40px 36px; overflow: hidden;
}
.quote::after {
    content: ""; position: absolute; right: -40px; bottom: -20px; width: 90px; height: 160px;
    background: var(--blue); transform: skewX(var(--skew));
}
.quote blockquote { margin: 0 0 24px; position: relative; z-index: 1; }
.quote blockquote p { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.45; margin: 0; }
.quote figcaption { display: flex; flex-direction: column; position: relative; z-index: 1; }
.quote figcaption span { color: #aebccb; font-size: .92rem; }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 80px 0; }
.cta-stripes span:first-child { left: -60px; width: 120px; background: var(--blue); }
.cta-stripes span:last-child { left: 90px; width: 40px; background: rgba(255,255,255,.06); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner > div:first-child { padding-left: 120px; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: #c3cfdb; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Unterseiten */
.page-head { background: var(--bg-alt); padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head .lead { margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #3c4c5b; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
    display: flex; flex-direction: column; gap: 8px; padding: 30px; text-decoration: none; color: var(--navy);
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s;
}
a.contact-card:hover { border-color: var(--blue); }
.contact-label { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.contact-value { font-size: 1.15rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-900); color: #c3cfdb; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #e3eaf1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .mark-dark { fill: #fff; }
.footer-brand .mark { width: 40px; margin-top: 4px; }
.footer-name { color: #fff; font-size: 1.2rem; margin: 0 0 6px; font-family: var(--font-display); }
.footer-address { margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-heading { color: #fff; font-weight: 600; margin: 0 0 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 24px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #8797a7; }

/* Responsive */
@media (max-width: 960px) {
    .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
    .service-card:nth-child(5) { grid-column: span 6; }
    .about { grid-template-columns: 1fr; gap: 40px; }
    .hero-stripes span:first-child { right: -40px; width: 120px; opacity: .15; }
    .hero-stripes span:last-child { right: -200px; width: 120px; opacity: .12; }
    .cta-inner > div:first-child { padding-left: 0; }
    .cta-stripes span:first-child { left: auto; right: -80px; opacity: .5; }
    .cta-stripes span:last-child { display: none; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .header-inner { height: 64px; }
    .mark { width: 36px; }
    .brand-name { font-size: 1.15rem; }
    .brand-claim { font-size: .66rem; }
    .nav-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
    }
    .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
        display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: transform .2s, background .2s;
    }
    .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bar::before { top: -7px; }
    .nav-toggle-bar::after { top: 7px; }
    .nav-open .nav-toggle-bar { background: transparent; }
    .nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
    .site-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31,47,62,.08);
    }
    .nav-open .site-nav { display: flex; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .site-nav a:not(.btn)::after { display: none; }
    .site-nav .btn { margin-top: 16px; }
    .hero { padding: 64px 0 72px; }
    .hero-stripes span:first-child { right: -150px; width: 80px; opacity: .12; }
    .hero-stripes span:last-child { display: none; }
    .eyebrow { letter-spacing: .1em; }
    .hero-tags { margin-top: 40px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 32px; }
    .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 6; }
    .quote { padding: 32px 26px 28px; }
    .quote blockquote p { font-size: 1.2rem; }
    .cta { padding: 64px 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
