/* s-mediaonline — Design Tokens (hell) — Update 2026-09-29: Navy + Rot, kein Cyan */
:root {
  --bg: #F7FAFC;
  --bg-elevated: #ffffff;
  --accent: #C1121F;
  --accent-hover: #9E0E19;
  --accent-soft: color-mix(in srgb, #153059 10%, #F7FAFC);
  --accent-soft-red: color-mix(in srgb, #C1121F 14%, #F7FAFC);
  --text: #153059;
  --text-muted: color-mix(in srgb, #153059 58%, #F7FAFC);
  --border: color-mix(in srgb, #153059 14%, #F7FAFC);
  --shadow: 0 8px 24px rgba(21, 48, 89, 0.08);

  --card-radius: 14px;
  --card-border: 2px;
  --pill-radius: 999px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --site-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.site {
  width: min(var(--site-max), 100% - 1.5rem);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  margin: 0 calc(50% - 50vw);
  padding: 0 calc(50vw - 50%);
}
.topbar-inner {
  width: min(var(--site-max), 100% - 1.5rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.35rem 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand-logo {
  height: clamp(56px, 14vw, 72px);
  width: auto;
  aspect-ratio: 1 / 1;
  max-width: min(72px, 20vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.nav-desktop {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-desktop a {
  display: block; padding: 0.45rem 0.7rem; border-radius: 8px;
  color: var(--text); font-weight: 650; font-size: 0.92rem; text-decoration: none;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] {
  background: var(--accent-soft); color: var(--text);
}
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); font-size: 1.2rem; font-weight: 650; font-family: inherit;
  padding: 0.55rem 0.95rem; border-radius: 12px; cursor: pointer; line-height: 1.2;
}
.menu-toggle:hover { background: var(--accent-soft); }

.nav-drawer { display: none; }
.nav-drawer.is-open, .nav-drawer.is-open[hidden] { display: block !important; }
.nav-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(21, 48, 89, 0.35); z-index: 50;
}
.nav-drawer-panel {
  position: fixed; top: 0; right: 0; width: min(300px, 88vw); height: 100%;
  background: var(--bg-elevated); z-index: 51;
  box-shadow: -8px 0 32px rgba(21, 48, 89, 0.15);
  display: flex; flex-direction: column; padding: 1rem 1.1rem 1.5rem;
}
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nav-drawer-head h2 { margin: 0; font-size: 1rem; }
.nav-drawer-close {
  border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--text);
  width: 2rem; height: 2rem; border-radius: 8px;
}
.nav-drawer-close:hover { background: var(--accent-soft); }
.nav-mobile { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile a {
  display: block; padding: 0.75rem 0.85rem; border-radius: 10px;
  color: var(--text); font-weight: 650; text-decoration: none;
}
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] {
  background: var(--accent-soft); color: var(--text);
}
@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
}

.hero {
  position: relative;
  margin: 1.25rem 0 1.5rem;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--card-radius);
  overflow: visible;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(21, 48, 89, 0.96) 0%, rgba(21, 48, 89, 0.88) 55%, rgba(193, 18, 31, 0.55) 100%),
    linear-gradient(160deg, #153059 0%, #1a3d6e 55%, #8B0F18 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  min-height: clamp(200px, 28vw, 280px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.hero-portrait {
  justify-self: end;
  align-self: end;
  width: clamp(80px, 18vw, 112px);
  height: clamp(80px, 18vw, 112px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(21, 48, 89, 0.35);
  background: #153059;
  margin-right: -0.35rem;
  margin-bottom: -1.1rem;
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.75rem);
  font-weight: 800; letter-spacing: 0.01em; line-height: 1.1;
}
.hero .tagline {
  margin: 0.7rem 0 0; max-width: 36rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem); font-weight: 500; opacity: 0.95;
}

.section { margin: 2rem 0; }
.section-head h2 {
  margin: 0 0 0.85rem; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.1rem 1rem 1rem;
  background: linear-gradient(160deg, #ffffff 0%, #E8EEF5 100%);
  border: var(--card-border) solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  min-height: 100%;
}
.card:hover { text-decoration: none; transform: translateY(-1px); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: 0.45rem;
  border-radius: 10px; background: #E8EEF5;
  font-size: 1.35rem; line-height: 1;
}
.card-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.card-sub { margin: 0; font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.card-pill {
  display: inline-flex; align-self: start; margin-top: 0.65rem;
  padding: 0.35rem 0.85rem; border-radius: var(--pill-radius);
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}

.feature-list {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-list { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1rem;
  cursor: default; text-decoration: none; color: inherit;
  box-shadow: none;
}
.feature a { color: var(--accent-hover); }
.feature:hover { transform: none; }
.feature h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 800; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.cta-band {
  margin: 2rem 0;
  padding: 1.35rem 1.25rem;
  border-radius: var(--card-radius);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0; font-size: 1.25rem; }
.cta-band p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.92rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.15rem; border-radius: var(--pill-radius);
  background: var(--accent); color: #fff;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; border: 0;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

.footer {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-muted);
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent-hover); }
.draft-mark { opacity: 0.7; font-size: 0.8em; }

.page-hero { margin: 1.25rem 0 1.5rem; }
.page-hero h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.page-hero .lede { margin: 0.6rem 0 0; color: var(--text-muted); max-width: 40rem; }
.back { margin: 1rem 0 0; font-size: 0.9rem; }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.logo-note {
  margin: 0.5rem auto 0; width: min(var(--site-max), 100% - 1.5rem);
  font-size: 0.78rem; color: var(--text-muted);
}

.card-icon svg.icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #153059;
  display: block;
}

.cta-inline{margin:1.5rem 0 0}
.cta-inline .card-pill{display:inline-flex;text-decoration:none}

.work-list { display: grid; gap: 1.25rem; }
.work-item {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--card-radius); overflow: hidden;
  padding: 0 0 1rem;
}
.work-img { display:block; width:100%; height:auto; aspect-ratio: 16/10; object-fit: cover; background:#e8eef5; }
.work-item h3 { margin: 0.85rem 1rem 0.35rem; font-size: 1.05rem; font-weight: 800; }
.work-item p { margin: 0 1rem; font-size: 0.9rem; color: var(--text-muted); }
.gallery {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item { margin: 0; border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); }
.gallery-item img { display:block; width:100%; height:auto; aspect-ratio: 3/2; object-fit: cover; }

/* Kontaktform */
.kontakt-form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
  padding: 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  position: relative;
}
.kontakt-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
}
.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.kontakt-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.datenschutz-hinweis {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}
.kontakt-form .btn {
  justify-self: start;
  padding: 0.65rem 1.35rem;
  font-size: 0.8rem;
}
.form-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}
.prose h3 { font-size: 1rem; margin: 1.15rem 0 0.4rem; font-weight: 750; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }

/* Cookie-Hinweis (light, like Barefoot) */
.cookie-banner {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  width: min(32rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: 0 12px 36px rgba(21, 48, 89, 0.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}
.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.85rem 0;
}
.cookie-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.cookie-option input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}
.cookie-option input:disabled { opacity: 0.75; }
.cookie-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}
.cookie-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
}
.cookie-essential {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-essential:hover { color: var(--accent-hover); }
@media (max-width: 560px) {
  .cookie-banner {
    right: 0.65rem;
    bottom: 0.65rem;
    width: calc(100vw - 1.3rem);
    padding: 0.9rem;
  }
}
