/* JH-Media – Farben und Schriften aus dem Logo */
:root {
    --paper:      #F8F1E3;  /* Logo-Hintergrund */
    --paper-deep: #F0E4CE;  /* abgesetzte Abschnitte */
    --wine:       #8B3049;  /* Logo-Farbe */
    --wine-deep:  #6A2236;  /* Hover, Überschriften */
    --ink:        #3A1F28;  /* Fließtext, weinrot-schwarz */
    --rose:       #D8BCC0;  /* feine Linien */

    --serif: 'Gloock', 'Bodoni 72', 'Didot', Georgia, serif;
    --sans:  'Jost', 'Futura', 'Century Gothic', 'Segoe UI', sans-serif;

    --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--wine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--wine); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--wine); color: var(--paper); padding: 0.5rem 1rem; }
.skip-link:focus { left: 0.5rem; z-index: 100; }

/* ---------- Kopfzeile ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rose);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--wine); }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--serif); font-size: 1.35rem; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); }
.site-nav a:hover { color: var(--wine); }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 5rem; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.hero-logo { width: 100%; max-width: 26rem; justify-self: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: -0.01em; margin-bottom: 1.4rem; }
.lead { font-size: 1.2rem; line-height: 1.6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1.5px solid var(--wine);
    transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--wine); color: var(--paper); }
.btn-primary:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover { background: var(--wine); color: var(--paper); }

/* ---------- Abschnitte ---------- */
.section { padding: 5rem 0; }
.section-tinted { background: var(--paper-deep); }

/* Überschrift zwischen zwei Linien – wie "— MEDIA —" im Logo */
.rule-title {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    text-align: center;
    margin-bottom: 3.5rem;
}
.rule-title::before,
.rule-title::after { content: ''; flex: 1; height: 2px; background: var(--wine); }
.rule-title span { flex: 0 1 auto; }

h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }

/* ---------- Leistungen: Spalten mit senkrechtem Strich wie zwischen Handy und Laptop im Logo ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { padding: 0 2.2rem; }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service + .service { border-left: 2px solid var(--wine); }
.service-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1.2rem;
    fill: none;
    stroke: var(--wine);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.service-icon .fill { fill: var(--wine); stroke: none; }
.service p { max-width: 30em; }
.service-tech { color: var(--wine); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.03em; }

/* ---------- Projekte ---------- */
.project { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2.8rem; align-items: start; }
.project-image {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    object-fit: cover;
    /* Doppelter Ring wie der Kreis im Logo */
    outline: 3px solid var(--wine);
    outline-offset: 7px;
    margin: 10px;
}
.project h3 { font-size: clamp(1.9rem, 3vw, 2.3rem); margin-bottom: 0.2rem; }
.project-kind { color: var(--wine); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 1rem; }
.project-text > p { max-width: 38em; }
.project-facts { margin: 1.4rem 0 1.6rem; display: grid; gap: 0.5rem; }
.project-facts div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--rose); }
.project-facts dt { font-weight: 500; color: var(--wine); }
.project-facts dd { margin: 0; }
.text-link { font-weight: 500; letter-spacing: 0.03em; }
.projects-more { margin: 3.5rem 0 0; text-align: center; color: var(--wine); font-style: italic; }

/* ---------- Ablauf (echte Reihenfolge, daher nummeriert) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 2px solid var(--wine);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--wine);
    margin-bottom: 1rem;
}
.steps h3 { font-size: 1.35rem; }
.steps p { font-size: 1rem; }

/* ---------- Kontakt: im Kreis wie das Logo ---------- */
.section-contact { padding-bottom: 6rem; }
.contact {
    max-width: 34rem;
    aspect-ratio: 1;
    margin: 0 auto;
    border: 3px solid var(--wine);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}
.contact h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.contact p { max-width: 22em; }
.contact-mail { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 0.4rem; word-break: break-word; }
.contact-phone { margin-top: 0.8rem; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 2px solid var(--wine); padding: 2rem 0; }
.site-footer-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer-inner p { margin: 0; flex: 1; }
.site-footer nav { display: flex; gap: 1.4rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 4rem 0 5rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.legal h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.legal code { background: var(--paper-deep); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.9em; }
.legal-note { border-left: 3px solid var(--wine); padding: 0.8rem 1rem; background: var(--paper-deep); font-size: 0.95rem; }

/* ---------- Tablet & Handy ---------- */
@media (max-width: 860px) {
    .hero { padding: 2.5rem 0 3.5rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-logo { max-width: 16rem; }
    .lead { margin: 0 auto; }
    .hero-actions { justify-content: center; }

    .services { grid-template-columns: 1fr; gap: 2.4rem; }
    .service, .service:first-child, .service:last-child { padding: 0; }
    .service + .service { border-left: 0; border-top: 2px solid var(--wine); padding-top: 2.4rem; }

    .project { grid-template-columns: 1fr; gap: 1.6rem; justify-items: center; text-align: center; }
    .project-text > p { margin-left: auto; margin-right: auto; }
    .project-facts div { text-align: left; }

    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    body { font-size: 1rem; }
    .site-nav { gap: 1rem; font-size: 0.92rem; }
    .brand span { display: none; }
    .section { padding: 3.5rem 0; }
    .rule-title { gap: 0.9rem; margin-bottom: 2.4rem; }
    .steps { grid-template-columns: 1fr; }
    /* Kreis wird auf kleinen Bildschirmen zu eng – dann als Rahmen mit runden Ecken */
    .contact { aspect-ratio: auto; border-radius: 2rem; padding: 2.5rem 1.5rem; }
    .site-footer-inner { justify-content: center; text-align: center; }
    .site-footer-inner p { flex-basis: 100%; }
}
