/* RAT Audiotechnik – gemeinsames Stylesheet */
:root {
  --bg: #0d1013;
  --bg-2: #14181d;
  --card: #181d23;
  --line: #262d36;
  --text: #e9ecef;
  --muted: #9aa4af;
  --accent: #f0a23a;       /* Bernstein, wie eine Pegelanzeige */
  --accent-2: #46c37b;     /* Grün für "geprüft" */
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

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

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 16, 19, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand .meter { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand .meter i { width: 4px; border-radius: 2px; background: var(--accent); }
.brand .meter i:nth-child(1) { height: 40%; background: var(--accent-2); }
.brand .meter i:nth-child(2) { height: 70%; background: var(--accent-2); }
.brand .meter i:nth-child(3) { height: 100%; }
.brand .meter i:nth-child(4) { height: 55%; }
.brand small { font-weight: 400; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(240, 162, 58, .16), transparent);
  pointer-events: none;
}
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.01em; max-width: 16ch; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin: 0 0 32px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600;
  border: 1px solid var(--line); color: var(--text); background: var(--bg-2);
}
.btn:hover { text-decoration: none; border-color: #3a434f; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a1205; }
.btn.primary:hover { background: #f5b45c; }

.wave { margin-top: 64px; opacity: .55; }

/* Abschnitte */
section { padding: 80px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 14px; }
section .intro { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { margin: 14px 0 10px; font-size: 1.35rem; }
.card p { color: var(--muted); margin: 0 0 16px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(240, 162, 58, .12); color: var(--accent);
}
.icon.green { background: rgba(70, 195, 123, .12); color: var(--accent-2); }
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { position: relative; padding-left: 28px; margin: 8px 0; }
ul.check li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg);
}

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); color: var(--accent); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; }
.step h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

.note { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 10px 10px 0; color: var(--muted); }
.note strong { color: var(--text); }

/* Über / Kontakt */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.facts { display: grid; gap: 14px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.fact b { display: block; font-size: 1.05rem; }
.fact span { color: var(--muted); font-size: 15px; }

.contact { text-align: center; }
.contact .intro { margin-left: auto; margin-right: auto; }
.mail { font-size: clamp(1.3rem, 3.6vw, 2rem); font-weight: 700; color: var(--text); word-break: break-all; }
.mail:hover { color: var(--accent); text-decoration: none; }

/* Kontaktformular */
.muted-label { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.form .small { font-size: 14px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fußzeile */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* Rechtstexte */
.legal { padding: 64px 0 80px; border-top: 0; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 28px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.legal p, .legal li { color: #c9cfd6; max-width: 72ch; }
.todo { background: rgba(240, 162, 58, .16); color: var(--accent); padding: 0 6px; border-radius: 4px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .top .wrap { padding-top: 8px; padding-bottom: 8px; }
  .hero { padding: 64px 0 48px; }
  section { padding: 60px 0; }
  .split { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}

/* Unterseiten */
.page-head { padding: 72px 0 48px; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: -60% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(240, 162, 58, .12), transparent);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0; }
.nav a[aria-current="page"] { color: var(--text); }
.more { display: inline-block; margin-top: 18px; font-weight: 600; }
.more::after { content: " →"; }
ul.check.cols { columns: 2 300px; column-gap: 40px; }
ul.check.cols li { break-inside: avoid; }
.cta .intro { margin-bottom: 24px; }

@media (max-width: 760px) {
  .page-head { padding: 48px 0 32px; }
}

/* Über mich: Fließtext */
.story { max-width: 68ch; }
.story h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 16px; }
.story h2 + p { margin-top: 0; }
.story p { color: #c9cfd6; margin: 0 0 16px; }
.story p + h2 { margin-top: 48px; }
.story .kern { color: var(--text); font-size: 1.15rem; font-weight: 600; border-left: 3px solid var(--accent); padding-left: 16px; margin: 24px 0; }
.facts-head { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.facts.row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Verbandsmitgliedschaft */
.partner { padding: 40px 0; }
.partner-box { display: inline-flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); max-width: 100%; }
.partner-box:hover { text-decoration: none; border-color: #3a434f; }
.partner-box img { width: 88px; height: auto; flex: none; }
.partner-box b { display: block; font-size: 1.05rem; }
.partner-box small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) { .partner-box { flex-direction: column; align-items: flex-start; } }
.logo-fact { color: var(--text); display: flex; flex-direction: column; }
.logo-fact:hover { text-decoration: none; border-color: #3a434f; }
.logo-plate { display: flex; align-items: center; justify-content: center; height: 72px; padding: 12px 16px; margin-bottom: 14px; background: #fff; border-radius: 8px; }
.logo-plate img { max-height: 46px; max-width: 100%; width: auto; height: auto; }

/* Galerie-Kacheln (Aufbau wie bei rockimhinterland.de/gallery) */
.g-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.g-kachel { position: relative; display: block; height: 200px; border-radius: 8px; overflow: hidden; background: var(--bg-2); color: #fff; transition: transform .2s ease; }
.g-kachel:hover { text-decoration: none; transform: scale(1.03); }
.g-kachel img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.g-kachel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.g-kachel-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 15px; background: rgba(0, 0, 0, .95); text-align: center; font-size: 19px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1000px) { .g-raster { grid-template-columns: repeat(2, 1fr); } }

/* Großansicht */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5, 7, 9, .94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lb[hidden] { display: none; }
.lb-bild { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-medium img, .lb-medium video { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; display: block; }
.lb-medium video { width: min(960px, 100%); background: #000; }
.lb-bild figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; text-align: center; }
.lb button { position: absolute; background: rgba(24, 29, 35, .85); color: var(--text); border: 1px solid var(--line); border-radius: 50%; width: 46px; height: 46px; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { border-color: var(--accent); color: var(--accent); }
.lb-zu { top: 14px; right: 14px; }
.lb-zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 12px; top: 50%; transform: translateY(-50%); }
html.lb-offen { overflow: hidden; }
@media (max-width: 760px) {
  .g-raster { grid-template-columns: 1fr; gap: 15px; }
  .g-kachel { height: 220px; }
  .g-kachel-text { font-size: 19px; padding: 9px 12px; }
  .lb { padding: 56px 8px 24px; }
  .lb-pfeil { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .g-kachel { transition: none; } .g-kachel:hover { transform: none; } }

/* Über mich: Porträt */
.ueber-grid { display: grid; grid-template-columns: minmax(0, 68ch) 300px; gap: 56px; align-items: start; }
.ueber-grid .story { grid-column: 1; grid-row: 1; }
.portrait { grid-column: 2; grid-row: 1; margin: 0; position: sticky; top: 96px; }
.portrait img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
@media (max-width: 900px) {
  .ueber-grid { grid-template-columns: 1fr; gap: 28px; }
  .ueber-grid .story, .portrait { grid-column: 1; grid-row: auto; }
  .portrait { position: static; max-width: 280px; }
}
