/* =================================================================
   SH-Media – Stylesheet
   ================================================================= */

/* ---------- Schriften (lokal gehostet, keine Verbindung zu Google) ---------- */

/* Überschriften: Bricolage Grotesque (SIL Open Font License, frei nutzbar) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../Fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

/* Fließtext: Figtree, sehr gut lesbar auch in kleinen Größen */
@font-face {
  font-family: "Figtree";
  src: url("../Fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../Fonts/figtree-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Farben & Grundwerte ---------- */
:root {
  /* Markenverlauf */
  --brand-1: #c331c6;
  --brand-2: #3415b4;
  --grad: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --grad-soft: linear-gradient(120deg, rgba(195, 49, 198, .12), rgba(52, 21, 180, .12));

  /* Einzelfarbe aus dem Verlauf für Text-Links (gut lesbar auf Hell) */
  --accent: #6a22bc;
  --accent-dark: var(--brand-2);

  --paper: #f7f6f9;
  --paper-2: #eeebf3;
  --ink: #1b1530;
  --muted: #564f68;
  --line: #dcd6e6;
  --ok: #1d7a4c;
  --err: #b3261e;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::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(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-1); }

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

::selection { background: var(--brand-1); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* Text im Markenverlauf (für Akzente) */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* feine Verlaufslinie unter der Kopfzeile */
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.25rem; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand:hover { color: transparent; opacity: .85; }
.brand-logo {
  height: 2.5rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
}
.nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); }
.nav a {
  position: relative;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding-block: .35rem;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
@media (max-width: 34rem) {
  .nav a.hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font: 600 1rem/1 var(--body);
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 0;
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0% 50%;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(52, 21, 180, .55);
  transition: background-position .35s ease, box-shadow .2s ease, transform .15s ease;
}
.btn:hover {
  color: #fff;
  background-position: 100% 50%;
  box-shadow: 0 10px 24px -10px rgba(195, 49, 198, .7);
}
.btn:active { transform: translateY(1px); }

/* Umriss-Button mit Verlaufsrahmen */
.btn.ghost {
  color: var(--accent-dark);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  box-shadow: none;
  padding: calc(1rem - 2px) calc(1.6rem - 2px);
}
.btn.ghost:hover {
  color: #fff;
  background: var(--grad) border-box;
}
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4rem, 12vw, 9rem) clamp(3.5rem, 9vw, 7rem);
}
/* Hintergrundbild (optional, aus dem Hero-Element) */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Markenverlauf über dem Bild, sorgt für Lesbarkeit */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(195, 49, 198, .82) 0%, rgba(52, 21, 180, .88) 100%),
    linear-gradient(0deg, rgba(27, 21, 48, .25), rgba(27, 21, 48, .25));
}

/* Großes Monogramm im Hintergrund */
.hero-mark {
  position: absolute;
  z-index: 1;
  right: -0.06em;
  bottom: -0.2em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(13rem, 36vw, 32rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .16;
  pointer-events: none;
  user-select: none;
  animation: mark-in 1.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes mark-in {
  from { opacity: 0; transform: translateY(6%); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } }

.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
  max-width: 15ch;
}
.hero-intro {
  max-width: 40ch;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  margin: 1.5rem 0 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero MIT Hintergrundbild: helle Schrift, Monogramm in Weiß */
.hero:has(.hero-bg) { color: #fff; }
.hero:has(.hero-bg) .hero-intro { color: rgba(255, 255, 255, .88); }
.hero:has(.hero-bg) .hero-mark {
  background: none;
  color: #fff;
  opacity: .14;
}
.hero:has(.hero-bg) .btn {
  background: #fff;
  color: var(--brand-2);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45);
}
.hero:has(.hero-bg) .btn:hover { background: var(--paper-2); }
.hero:has(.hero-bg) .btn.ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .85);
  color: #fff;
}
.hero:has(.hero-bg) .btn.ghost:hover { background: rgba(255, 255, 255, .15); }

/* Monogramm per Schalter im Hero-Element ausblenden */
.hero:has(.hero-flag-no-mark) .hero-mark { display: none; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
/* kurzer Verlaufsbalken über jeder Abschnittsüberschrift */
.section-head h2::before,
.about-text h2::before {
  content: "";
  display: block;
  width: 3rem; height: 4px;
  border-radius: 2px;
  background: var(--grad);
  margin-bottom: 1.1rem;
}
.section-head p { color: var(--muted); margin: 1rem 0 0; }

/* ---------- Leistungen ---------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: .75rem 3rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* Verlaufslinie über der ersten Leistung */
.section-head + .service { border-top: 0; }
.section-head + .service::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--grad);
}
.service h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  transition: color .2s;
}
.service p { margin: 0; color: var(--muted); max-width: 52ch; }
.service .tags {
  margin: .9rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.service .tags li {
  font-size: .88rem; font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--grad-soft);
}
.service:hover h3 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 44rem) {
  .service { grid-template-columns: 1fr; }
}

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  background: var(--paper-2);
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--display);
}
/* Verlaufsfläche versetzt hinter dem Foto */
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  transform: translate(.9rem, .9rem);
  border-radius: inherit;
  background: var(--grad);
  z-index: -1;
}
.about { isolation: isolate; }
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.about-text h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.25rem; }
.about-text .lead {
  font-size: 1.25rem; font-weight: 600; line-height: 1.45;
  margin: 0 0 1rem;
}
.rte p, .rte ul, .rte ol { max-width: 60ch; margin: 0 0 1rem; }
@media (max-width: 44rem) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 20rem; }
}

/* ---------- Kontakt ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #eeecf4;
}
/* dezentes Verlaufsleuchten im dunklen Kontaktbereich */
.contact-section::before {
  content: "";
  position: absolute;
  width: 60rem; height: 60rem;
  right: -25rem; top: -30rem;
  background: radial-gradient(closest-side, rgba(195, 49, 198, .35), rgba(52, 21, 180, .15) 55%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}
.contact-section .section-head h2 { color: #fff; }
.contact-section .section-head p { color: #bfb8d0; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 50rem) { .contact { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 1.5rem; align-content: start; }
.contact-info > div { display: grid; gap: .1rem; }
.contact-info h3 {
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: #bfb8d0; margin-bottom: .2rem;
}
.contact-info p { margin: 0; font-size: 1.15rem; }
.contact-info a { color: #fff; text-decoration-color: var(--brand-1); }
.contact-info a:hover { color: #f0c8f1; }

/* ---------- Formular (EXT:form) im dunklen Kontaktbereich ---------- */
.contact-section form { display: grid; gap: 1.1rem; }
.contact-section .form-element { display: grid; gap: .4rem; margin: 0; }
.contact-section .form-label { font-weight: 600; font-size: .95rem; }
.contact-section .form-control {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: .75rem;
  padding: .85rem 1rem;
  width: 100%;
}
.contact-section textarea.form-control { min-height: 10rem; resize: vertical; }
.contact-section .form-control:focus {
  outline: none;
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
}
.contact-section .form-control.is-invalid { border-color: #ff8a80; }
.contact-section .invalid-feedback { color: #ffb4ab; font-size: .9rem; font-weight: 600; }
.contact-section .form-text { color: #bfb8d0; font-size: .88rem; }
.contact-section .required { color: #e38fe5; margin-left: .15em; }

.contact-section .form-check-wrapping-label {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .92rem; color: #cfc9dc;
}
.contact-section .form-check-input {
  margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--brand-1); flex: none;
}
.contact-section .form-check-label a { color: #fff; }

.contact-section .actions,
.contact-section .form-navigation { margin: 0; }
.contact-section .form-navigation > * { display: flex; gap: .75rem; }
.contact-section .btn.btn-primary,
.contact-section button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--body);
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 0;
  background: var(--grad);
  background-size: 160% 100%;
  color: #fff;
  cursor: pointer;
  transition: background-position .35s ease;
}
.contact-section .btn.btn-primary:hover,
.contact-section button[type="submit"]:hover { background-position: 100% 50%; }

/* Bestätigung nach dem Absenden */
.contact-section .plugin > p,
.contact-section .plugin .confirmation {
  background: #d8f0e2; color: var(--ok);
  padding: 1rem 1.25rem; border-radius: .75rem; font-weight: 600;
}

/* ---------- Fußzeile ---------- */
.site-footer {
  position: relative;
  padding-block: 2.25rem;
  font-size: .92rem;
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.legal { padding-block: clamp(3rem, 8vw, 5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 2rem;
}
.legal h1::after {
  content: "";
  display: block;
  width: 3rem; height: 4px; border-radius: 2px;
  background: var(--grad);
  margin-top: 1rem;
}
.legal h2 { font-size: 1.4rem; margin: 2.5rem 0 .75rem; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { max-width: 68ch; }
.text-element + .text-element { margin-top: 2rem; }
