/* ============================================================
   WebNar — Portfolio
   Mobile-first. Design tokens → Base → Components → Sections.
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, picture { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* ── Tokens ── */
:root {
    --bg:            #ffffff;
    --surface:       #fafaf9;
    --text:          #111111;
    --text-2:        #52555a;
    --text-3:        #8a8d92;
    /* Markenfarben aus dem WebNar-Logo: Anthrazit + Grau */
    --accent:        #2b2b2b;
    --accent-2:      #4a4a4a;
    --accent-soft:   rgba(43,43,43,0.06);
    --logo-grey:     #8e9195;
    --eyebrow:       #6b6e73;
    --border:        rgba(17,17,17,0.10);
    --border-2:      rgba(17,17,17,0.16);

    --radius:        16px;
    --radius-sm:     10px;
    --radius-lg:     22px;

    --shadow-sm:     0 1px 2px rgba(17,17,17,0.04), 0 1px 3px rgba(17,17,17,0.06);
    --shadow-md:     0 12px 32px -14px rgba(17,17,17,0.16);
    --shadow-lg:     0 30px 60px -24px rgba(17,17,17,0.22);

    --container:     1120px;
    --pad:           20px;

    --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
    --t:             0.25s var(--ease);

    --font-display:  'Fraunces', Georgia, serif;
    --font-body:     'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ── Layout helpers ── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.section { padding-block: clamp(56px, 9vw, 104px); }
.section + .section { border-top: 1px solid var(--border); }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--eyebrow);
    margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--text); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.section-sub { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; }

.text-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--t);
}
.text-link:hover { border-color: var(--accent); }

.skip-link {
    position: absolute; left: 12px; top: -60px;
    background: var(--accent); color: #fff;
    padding: 10px 16px; border-radius: 8px; z-index: 200;
    text-decoration: none; transition: top var(--t);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform var(--t), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── Navbar ── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
/* Wortmarke im Stil des Logos: gesperrte Versalien, nicht die Serifenschrift */
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text {
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.22em; color: var(--text);
}
.nav-logo-img { height: 21px; width: auto; }

.nav-menu { display: none; }
.nav-links { list-style: none; display: flex; gap: 28px; padding: 0; }
.nav-links a { font-size: 0.92rem; color: var(--text-2); text-decoration: none; transition: color var(--t); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px;
    background: transparent; border: 1px solid var(--border); border-radius: 10px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.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); }

/* Mobile dropdown panel */
.nav-menu.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: var(--pad); right: var(--pad); top: 72px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px; box-shadow: var(--shadow-md);
}
.nav-menu.open .nav-links { flex-direction: column; gap: 2px; }
.nav-menu.open .nav-links a { display: block; padding: 12px 12px; border-radius: 8px; color: var(--text); }
.nav-menu.open .nav-links a:hover { background: var(--surface); }
.nav-menu.open .nav-cta { margin-top: 8px; }

/* ── Hero ── */
.hero { padding-block: clamp(56px, 10vw, 108px); }
.hero-inner { display: grid; grid-template-columns: 1fr; }
.hero-copy { min-width: 0; max-width: 760px; }
.hero-title { font-size: clamp(2.3rem, 8vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
/* Grau wie der zweite Strich im Logo */
.hero-title em { font-style: normal; color: var(--logo-grey); }
.hero-sub { margin-top: 22px; color: var(--text-2); font-size: 1.1rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── Über mich ── */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 52px); }
.about-copy { min-width: 0; max-width: 760px; }
.about-copy h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 8px; }
.about-copy p { color: var(--text-2); margin-top: 16px; }
.about-copy p a { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border-2); }
.about-copy p a:hover { border-color: var(--accent); }
.about-points { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 10px; }
.about-points li { position: relative; padding-left: 24px; font-size: 0.98rem; color: var(--text-2); }
.about-points li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.about-points strong { color: var(--text); font-weight: 600; }

/* ── Cards grid ── */
.cards-grid { display: grid; gap: 16px; }
.card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.card h3 { font-size: 1.15rem; margin-bottom: 16px; }
.card-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.card-list li { position: relative; padding-left: 20px; font-size: 0.95rem; color: var(--text-2); line-height: 1.55; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card-list strong { color: var(--text); font-weight: 600; }
.card p { color: var(--text-2); font-size: 0.95rem; }
/* Paket-Karten stehen unter den Leistungs-Karten und brauchen Luft dazwischen */
.packages { margin-top: clamp(28px, 4vw, 44px); }
.agency-note { margin-top: 26px; font-size: 0.95rem; color: var(--text-2); max-width: 760px; }
.agency-note strong { color: var(--text); font-weight: 600; }

/* ── Referenz / Case study ── */
.gallery-main {
    position: relative; width: 100%; aspect-ratio: 1.9;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md);
}
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--ease); }
.gallery-img.active { opacity: 1; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 100px; aspect-ratio: 1.9; padding: 0; overflow: hidden;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); opacity: 0.6; transition: opacity var(--t), border-color var(--t), transform var(--t);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }

.case-grid { display: grid; gap: 16px; margin-top: clamp(32px, 5vw, 48px); }
.case-block {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: clamp(22px, 3vw, 28px); box-shadow: var(--shadow-sm);
}
.case-block h3 { font-size: 1.05rem; margin-bottom: 12px; }
.case-block p { color: var(--text-2); font-size: 0.98rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.78rem; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }

/* ── Pricing ── */
.pricing-grid { display: grid; gap: 18px; }
.price-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(26px, 3.5vw, 34px); box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-head h3 { font-size: 1.3rem; }
.price-for { color: var(--text-3); font-size: 0.92rem; margin-top: 4px; }
.price-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 20px 0; }
.price-amount.is-text { font-size: 1.35rem; line-height: 1.25; }
.price-amount span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: var(--text-3); }
.price-amount.is-text span { display: block; margin-top: 4px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 22px; }
.price-list li { position: relative; padding-left: 24px; font-size: 0.94rem; color: var(--text-2); }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-list strong { color: var(--text); }
.price-card .btn { margin-top: auto; }
.pricing-note { margin-top: 24px; font-size: 0.9rem; color: var(--text-3); text-align: center; }

/* Care-Pläne — gleiche Karten wie Pricing, zwei Spalten */
.care-grid { display: grid; gap: 18px; }

/* ── Ablauf ── */
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.step-num {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem;
    background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border);
}
.step h3 { font-size: 1.05rem; margin-bottom: 2px; }
.step p { color: var(--text-2); font-size: 0.94rem; }

/* ── Kontakt ── */
.contact-inner { text-align: center; }
.contact-cards { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.contact-card {
    display: flex; flex-direction: column; gap: 4px; text-align: left;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; text-decoration: none; box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.contact-kind { font-size: 0.82rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { font-size: 1.1rem; font-weight: 600; }
.contact-card:hover .contact-value { color: var(--accent); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding-block: clamp(40px, 6vw, 64px) 28px; background: var(--surface); }
.footer-inner { display: grid; gap: 28px; padding-bottom: 32px; }
.footer-logo {
    display: inline-block;
    font-family: var(--font-body); font-size: 1rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.22em; color: var(--text);
}
.footer-logo-img { width: 168px; height: auto; margin-bottom: 4px; }
.footer-brand p { color: var(--text-2); font-size: 0.94rem; margin-top: 10px; max-width: 42ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer-nav a { color: var(--text-2); text-decoration: none; font-size: 0.94rem; transition: color var(--t); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--text-3); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Breakpoints (min-width, mobile-first)
   ============================================================ */
@media (min-width: 700px) {
    .cards-grid.cards-3 { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
    .care-grid { grid-template-columns: repeat(2, 1fr); align-items: start; max-width: 760px; margin-inline: auto; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 900px) {
    :root { --pad: 32px; }
    .nav-menu { display: flex; align-items: center; gap: 30px; }
    .nav-toggle { display: none; }
    .cards-grid.cards-3 { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps .step:last-child { grid-column: 1 / -1; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
}
