/* ═══════════════════════════════════════════════════
   components.css – Kern-UI-Komponenten
   Nav, Buttons, Hero, Sections, Cards, Forms, Footer
   ═══════════════════════════════════════════════════ */

/* ─── BASE ─── */
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--brand-teal); color: #fff; }

/* ─── SKIP LINK ─── */
.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: var(--brand-teal); color: #fff;
    padding: 0.5rem 1rem; border-radius: 0 0 4px 4px;
    font-size: 0.85rem; font-weight: 600; z-index: 9999;
    text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }


/* ═══════ NAVIGATION ═══════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250, 250, 248, 0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav.scrolled {
    border-bottom-color: var(--color-border-light);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.nav__inner {
    display: flex; justify-content: space-between;
    align-items: center; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.nav__logo {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
    color: var(--color-text); text-decoration: none; letter-spacing: -0.01em;
}
.nav__links { display: flex; align-items: end; gap: 0.3rem; }
.nav__link {
    font-size: 0.84rem; font-weight: 500; color: var(--color-text-secondary);
    text-decoration: none; padding: 0.45rem 0.85rem; border-radius: 6px;
    transition: color 0.2s, background 0.2s; letter-spacing: 0.01em;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--color-text); background: var(--color-bg-warm); }
.nav__cta {
    background: var(--color-text); color: var(--color-bg) !important;
    font-weight: 600; margin-left: 0.5rem; padding: 0.5rem 1.1rem;
    letter-spacing: 0.02em;
}
.nav__cta:hover,
.nav__cta:focus-visible { background: var(--brand-teal) !important; color: #fff !important; }
.nav__toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 0.4rem; flex-direction: column; gap: 5px;
}
.nav__toggle span {
    display: block; width: 22px; height: 2px; background: var(--color-text);
    border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Language switcher */
.lang-switch {
    display: flex; align-items: center; gap: 0.3rem;
    margin-left: 0.6rem; font-size: 0.78rem; font-weight: 600;
    color: var(--color-text-muted);
}
.lang-switch a {
    color: var(--color-text-muted); text-decoration: none;
    padding: 0.2rem 0.4rem; border-radius: 3px;
    transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--color-text); }
.lang-switch a.active { color: var(--color-text); background: var(--color-bg-warm); }
.lang-switch__sep { color: var(--color-border); user-select: none; }


/* ═══════ BUTTONS ═══════ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.8rem; font-family: var(--font-body);
    font-size: 0.9rem; font-weight: 600; text-decoration: none;
    border: none; border-radius: 6px; cursor: pointer;
    transition: all 0.25s var(--ease-out); letter-spacing: 0.01em; line-height: 1.4;
}
.btn--primary { background: var(--color-text); color: var(--color-bg); }
.btn--primary:hover { background: var(--brand-teal); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1.5px var(--color-border); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--color-text); }
.btn--wide { width: 100%; justify-content: center; }


/* ═══════ SECTION PRIMITIVES ═══════ */
.section__label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.2em; margin-bottom: 0.7rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.section__label::before { content: ''; width: 24px; height: 2px; border-radius: 1px; }
.section__label--blue { color: var(--brand-blue); }
.section__label--blue::before { background: var(--brand-blue); }
.section__label--green { color: var(--brand-green); }
.section__label--green::before { background: var(--brand-green); }
.section__label--teal { color: var(--brand-teal); }
.section__label--teal::before { background: var(--brand-teal); }
.section__label--coral { color: var(--brand-coral); }
.section__label--coral::before { background: var(--brand-coral); }

.section__title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.01em;
}
.section__intro {
    font-size: 1.05rem; color: var(--color-text-secondary);
    max-width: 600px; line-height: 1.8; margin-bottom: 2.5rem;
}


/* ═══════ HERO ═══════ */
.hero {
    min-height: 100svh; display: flex; align-items: center;
    padding: 7rem 0 4rem; position: relative; overflow: hidden;
}

/* Decorative shapes */
.hero__deco { position: absolute; border-radius: 50%; opacity: 0.08; pointer-events: none; z-index: 0; }
.hero__deco--1 { width: clamp(200px,35vw,420px); height: clamp(200px,35vw,420px); background: var(--brand-blue); top: 8%; right: -5%; animation: floatSlow 20s ease-in-out infinite; }
.hero__deco--2 { width: clamp(120px,18vw,220px); height: clamp(120px,18vw,220px); background: var(--brand-green); border-radius: 30% 70% 70% 30%/30% 30% 70% 70%; bottom: 12%; right: 15%; animation: floatSlow 25s ease-in-out infinite reverse; }
.hero__deco--3 { width: clamp(80px,12vw,160px); height: clamp(80px,12vw,160px); background: var(--brand-teal); border-radius: 40% 60% 55% 45%/55% 45% 55% 45%; top: 20%; right: 22%; animation: floatSlow 18s ease-in-out infinite; }
.hero__deco--4 { width: clamp(60px,9vw,120px); height: clamp(60px,9vw,120px); background: var(--brand-coral); border-radius: 50%; bottom: 25%; right: 35%; animation: floatSlow 22s ease-in-out infinite reverse; }
@keyframes floatSlow {
    0%,100% { transform: translate(0,0) rotate(0deg); }
    25%     { transform: translate(-8px,12px) rotate(2deg); }
    50%     { transform: translate(5px,-8px) rotate(-1deg); }
    75%     { transform: translate(-3px,5px) rotate(1deg); }
}

/* Hero text elements */
.hero__label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brand-teal); margin-bottom: 1.5rem; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.4rem,5.5vw,3.8rem); font-weight: 600; line-height: 1.12; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero__title em { font-style: italic; color: var(--brand-teal); font-weight: 600; }
.hero__text { font-size: 1.12rem; line-height: 1.8; color: var(--color-text-secondary); margin-bottom: 2rem; max-width: 560px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.84rem; color: var(--color-text-muted); margin-bottom: 2.5rem; }
.hero__meta-item { display: flex; align-items: center; gap: 0.45rem; }
.hero__meta-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Hero portrait grid */
.hero__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr auto auto auto;
    gap: 0.5rem 3rem; align-items: start; position: relative; z-index: 1;
}
.hero__portrait { grid-column: 1; grid-row: 1 / 6; border-radius: 12px; overflow: hidden; align-self: start; }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__quote-block { grid-column: 1; grid-row: 3; margin-top: 4rem; }
.hero__grid > .hero__label   { grid-column: 2; grid-row: 1; }
.hero__grid > .hero__title   { grid-column: 2; grid-row: 2; margin-bottom: 0.5rem; }
.hero__grid > .hero__text    { grid-column: 2; grid-row: 3; margin-bottom: 1rem; }
.hero__grid > .hero__meta    { grid-column: 2; grid-row: 4; margin-bottom: 1.5rem; }
.hero__grid > .hero__actions { grid-column: 2; grid-row: 5; }

.hero__quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 400; font-style: italic; line-height: 1.35; color: var(--color-text); margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.hero__quote-mark { color: var(--brand-teal); opacity: 0.4; font-size: 1.2em; line-height: 0; vertical-align: -0.15em; }
.hero__quote-author { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }


/* ═══════ ABOUT ═══════ */
.about__text p { color: var(--color-text-secondary); line-height: 1.85; margin-bottom: 1.1rem; }
.about__text a { color: var(--brand-teal); text-decoration: none; border-bottom: 1px solid var(--color-border); transition: border-color 0.2s; }
.about__text a:hover { border-color: var(--brand-teal); }
.about__credentials { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border-light); }
.credential { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.55rem; font-size: 0.92rem; color: var(--color-text-secondary); }
.credential__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 0.45rem; }

.about__aside { background: var(--color-bg-warm); border-radius: 12px; padding: 2.2rem; position: relative; overflow: hidden; }
.about__aside::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-green), var(--brand-teal), var(--brand-coral)); }
.about__pronouns { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); background: var(--color-surface); padding: 0.25rem 0.7rem; border-radius: 4px; margin-bottom: 1.4rem; }
.about__quote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; color: var(--color-text); font-style: italic; margin-bottom: 1.3rem; font-weight: 400; }
.about__aside p { color: var(--color-text-secondary); font-size: 0.93rem; line-height: 1.75; }
.about__aside-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.3rem; font-size: 0.9rem; font-weight: 600; color: var(--brand-teal); text-decoration: none; transition: gap 0.2s var(--ease-out); }
.about__aside-link:hover { gap: 0.7rem; }


/* ═══════ SERVICES ═══════ */
.services { background: var(--color-bg-warm); }
.service-card { background: var(--color-surface); padding: 2rem; border-radius: 10px; border: 1px solid var(--color-border-light); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; opacity: 0; transition: opacity 0.3s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.service-card:hover::before { opacity: 1; }
.service-card--blue::before  { background: var(--brand-blue); }
.service-card--green::before { background: var(--brand-green); }
.service-card--teal::before  { background: var(--brand-teal); }
.service-card--coral::before { background: var(--brand-coral); }

.service-card__icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 1.2rem; font-weight: 700; }
.service-card--blue .service-card__icon  { background: var(--blue-soft);  color: var(--brand-blue); }
.service-card--green .service-card__icon { background: var(--green-soft); color: var(--brand-green); }
.service-card--teal .service-card__icon  { background: var(--teal-soft);  color: var(--brand-teal); }
.service-card--coral .service-card__icon { background: var(--coral-soft); color: var(--brand-coral); }

.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.7rem; line-height: 1.3; }
.service-card p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.7; }
.service-card__tag { display: inline-block; margin-top: 1rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }


/* ═══════ APPROACH ═══════ */
.approach { background: var(--color-text); color: #fff; }
.approach .section__label { color: var(--brand-green); }
.approach .section__label::before { background: var(--brand-green); }
.approach .section__title { color: #fff; }
.approach .section__intro { color: rgba(255,255,255,0.6); }
.approach-item__number { font-family: var(--font-display); font-size: 2.8rem; font-weight: 300; line-height: 1; margin-bottom: 0.8rem; opacity: 0.2; }
.approach-item h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 0.6rem; }
.approach-item p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.75; }


/* ═══════ PRICING ═══════ */
.pricing__box { max-width: 560px; background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: 12px; padding: 2.8rem; }
.pricing__amount { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; color: var(--color-text); letter-spacing: -0.02em; }
.pricing__unit { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.pricing__details { margin: 1.5rem 0; padding: 1.2rem 0; border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); }
.pricing__row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.92rem; color: var(--color-text-secondary); }
.pricing__note { font-size: 0.84rem; color: var(--color-text-muted); font-style: italic; margin-top: 1rem; text-align: center; }


/* ═══════ FAQ ═══════ */
.faq { background: var(--color-bg-warm); }
.faq__list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--color-border); padding: 1.3rem 0; }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item summary { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.3rem 0; transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--color-text-muted); transition: transform 0.25s var(--ease-out); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--brand-teal); }
.faq-item__answer { padding: 0.8rem 0 0.5rem; font-size: 0.93rem; color: var(--color-text-secondary); line-height: 1.8; max-width: 620px; }


/* ═══════ BLOG CARDS ═══════ */
.blog-card { background: var(--color-surface); border-radius: 10px; overflow: hidden; border: 1px solid var(--color-border-light); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); text-decoration: none; color: inherit; display: block; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.blog-card__body { padding: 1.6rem; }
.blog-card__date { font-size: 0.74rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.blog-card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 0.6rem; line-height: 1.35; transition: color 0.2s; }
.blog-card:hover h3 { color: var(--brand-teal); }
.blog-card__excerpt { font-size: 0.88rem; color: var(--color-text-secondary); line-height: 1.7; }
.blog-card__tag { display: inline-block; margin-top: 0.8rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card__tag--blue  { color: var(--brand-blue); }
.blog-card__tag--green { color: var(--brand-green); }
.blog-card__tag--teal  { color: var(--brand-teal); }
.blog-card__tag--coral { color: var(--brand-coral); }


/* ═══════ CONTACT & FORM ═══════ */
.contact-info__block { margin-bottom: 1.8rem; }
.contact-info__block h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin-bottom: 0.7rem; }
.contact-info__block p { color: var(--color-text-secondary); margin-bottom: 0.35rem; font-size: 0.93rem; }
.contact-info__block a { color: var(--brand-teal); text-decoration: none; border-bottom: 1px solid var(--color-border); transition: border-color 0.2s; }
.contact-info__block a:hover { border-color: var(--brand-teal); }
.contact-info__note { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.7; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 0.93rem; border: 1.5px solid var(--color-border); border-radius: 6px; background: var(--color-surface); color: var(--color-text); transition: border-color 0.2s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--brand-teal); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.8rem; }
.form-note a { color: var(--brand-teal); text-decoration: none; border-bottom: 1px solid var(--color-border); }


/* ═══════ FOOTER ═══════ */
.footer { background: var(--color-text); color: rgba(255,255,255,0.55); padding: 3rem 0 1.5rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 2rem; }
.footer__brand { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.footer__links { display: flex; gap: 1.5rem; font-size: 0.85rem; }
.footer a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer__bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__legal { display: flex; gap: 1.2rem; }


/* ═══════ ANIMATIONS ═══════ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.07s; }
.fade-up:nth-child(3) { transition-delay: 0.14s; }
.fade-up:nth-child(4) { transition-delay: 0.21s; }
.fade-up:nth-child(5) { transition-delay: 0.28s; }


/* ═══════ FOCUS (Accessibility) ═══════ */
*:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; box-shadow: 0 0 0 3px rgba(90, 158, 143, 0.3); }


/* ═══════ DARK MODE – nur was Token-Overrides nicht abdecken ═══════ */
@media (prefers-color-scheme: dark) {
    body { color-scheme: dark; }
    .nav { background: rgba(26, 26, 28, 0.9); }
    .nav__cta { background: var(--brand-teal); color: #111 !important; }
    .nav__cta:hover, .nav__cta:focus-visible { background: #8AECD3 !important; color: #111 !important; }
    .hero__deco { opacity: 0.06; }
    .btn--primary { background: var(--brand-teal); color: #111; }
    .btn--primary:hover { background: #8AECD3; color: #111; }
    .approach, .footer { background: #141416; }
    ::selection { color: #111; }
}


/* ═══════ MOBILE – konsolidiert, muss am Ende stehen ═══════ */
@media (max-width: 700px) {
    /* Nav: hidden by default, dropdown on click */
    .nav {
        transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
    }
    .nav--hidden { transform: translateY(-100%); }
    .nav__links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--color-bg); flex-direction: column;
        padding: 0.6rem var(--content-padding) 0.8rem; gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    }
    .nav__links.open { display: flex; }
    .nav__toggle { display: flex; }
    .nav__link { padding: 0.55rem 0; font-size: 0.88rem; width: 100%; border-bottom: 1px solid var(--color-border-light); }
    .nav__link:last-of-type { border-bottom: none; }
    .nav__cta { margin-left: 0; margin-top: 0.5rem; padding: 0.55rem 1rem; font-size: 0.85rem; width: 100%; text-align: center; justify-content: center; }
    .lang-switch { display: none; margin: 0.5rem 0 0 0; padding-top: 0.5rem; border-top: 1px solid var(--color-border-light); }
    .nav__links.open ~ .lang-switch { display: flex; }

    /* Hero portrait: reorder for mobile */
    .hero__grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 1rem; }
    .hero__portrait { grid-column: 1; grid-row: auto; order: 3; aspect-ratio: 3/4; max-height: 480px; }
    .hero__quote-block { grid-column: 1; grid-row: auto; order: 4; margin-top: 0; }
    .hero__grid > .hero__label   { grid-column: 1; grid-row: auto; order: 1; }
    .hero__grid > .hero__title   { grid-column: 1; grid-row: auto; order: 2; }
    .hero__grid > .hero__text    { grid-column: 1; grid-row: auto; order: 5; }
    .hero__grid > .hero__meta    { grid-column: 1; grid-row: auto; order: 6; }
    .hero__grid > .hero__actions { grid-column: 1; grid-row: auto; order: 7; }
}