/* AREF Media – Stylesheet
   Layout: dunkles Onyx-Feld, Siegel als Mittelpunkt, ruhige Goldlinien als Taktgeber (Klangwelle aus dem Logo).
   Schriften liegen lokal unter assets/fonts (DSGVO: keine Verbindung zu Google). */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/CormorantGaramond-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("fonts/CormorantGaramond-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/Jost-normal.woff2") format("woff2"); }

:root {
  --onyx: #0B0B0D;
  --onyx-2: #141316;
  --line: #2A2621;
  --ivory: #F5F0E6;
  --muted: #B3AA9A;
  --gold: #C9A45C;
  --gold-light: #E8D193;
  --gold-gradient: linear-gradient(120deg, #F3E3B5 0%, #C9A45C 45%, #E8D193 70%, #9A7435 100%);
  --ph-bg: #3A2E12;
  --ph-fg: #FFE7A3;

  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ivory); color: var(--onyx); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--onyx); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--onyx) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand img { height: 3.5rem; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.nav a { color: var(--muted); text-decoration: none; padding-block: .25rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); }
@media (max-width: 560px) { .brand img { height: 2.75rem; } .nav { gap: .25rem 1rem; font-size: .75rem; } .nav .opt { display: none; } }

/* Typo */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
.gold-text { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--body); font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 400; margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
p { margin: 0 0 1rem; }

/* Klangwellen-Trenner */
.wave { display: flex; align-items: center; gap: .9rem; color: var(--gold); }
.wave::before, .wave::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.wave::after { background: linear-gradient(90deg, var(--gold), transparent); }
.wave svg { width: 3.5rem; height: 1rem; flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); background: radial-gradient(ellipse 70% 60% at 70% 45%, #1E1913 0%, var(--onyx) 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { min-width: 0; display: grid; gap: 1.5rem; }
.hero-copy h1 em { font-style: italic; }
.hero-seal { position: relative; max-width: 26rem; justify-self: center; width: 100%; }
.hero-seal { aspect-ratio: 1; }
.hero-seal img { width: 100%; height: 100%; position: absolute; inset: 0; }
/* Nur der äußere Ring dreht sich, das Monogramm in der Mitte bleibt stehen. */
.hero-seal .seal-ring { animation: turn 120s linear infinite; }
.hero-seal::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; box-shadow: 0 0 120px 10px rgba(201,164,92,.12); pointer-events: none; }
@keyframes turn { to { transform: rotate(360deg); } }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--gold); color: var(--gold-light); transition: background .25s, color .25s; }
.btn:hover { background: var(--gold); color: var(--onyx); }
.btn.solid { background: var(--gold-gradient); color: var(--onyx); border-color: transparent; font-weight: 500; }
.btn.solid:hover { filter: brightness(1.08); color: var(--onyx); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-seal { order: -1; max-width: 16rem; } }

/* Sections */
section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { display: grid; gap: .5rem; margin-bottom: 3rem; max-width: 40rem; }

/* Schwerpunkte: fünf Felder wie die Umschrift des Siegels */
.fields { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.field { grid-column: span 2; padding: 2rem 1.75rem 2.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: .75rem; align-content: start; min-width: 0; }
/* Pyramide: oben KI und Technologie (mittig), unten Musik, digitale Medien, Bücher. Die Reihenfolge im HTML bleibt unverändert. */
.field:nth-child(4) { grid-row: 1; grid-column: 2 / span 2; border-right: 1px solid var(--line); }
.field:nth-child(5) { grid-row: 1; grid-column: 4 / span 2; }
.field:nth-child(1), .field:nth-child(2), .field:nth-child(3) { grid-row: 2; }
.field:nth-child(1), .field:nth-child(2) { border-right: 1px solid var(--line); }
.field svg { width: 2.5rem; height: 2.5rem; }
.field .tag { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.field p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field, .field:nth-child(n) { grid-row: auto; grid-column: auto; padding: 1.75rem 1.25rem 2rem; border-right: 0; border-top: 0; }
  .field:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .field:nth-child(odd) { border-right: 1px solid var(--line); }
  .field:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .field, .field:nth-child(n) { padding: 1.5rem 0; border-right: 0; grid-column: auto; }
  .field:nth-child(2) { border-top: 0; }
}

/* Über */
.about { background: var(--onyx-2); border-block: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; color: var(--gold-light); }
.about .copy { min-width: 0; max-width: 38rem; }
.about .copy p { color: var(--muted); }
.about .copy strong { color: var(--ivory); font-weight: 500; }
@media (max-width: 820px) { .about .wrap { grid-template-columns: 1fr; } }

/* Kontakt */
.contact .wrap { display: grid; gap: 2.5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.contact-item { border-top: 1px solid var(--gold); padding-top: 1.25rem; min-width: 0; }
.contact-item .tag { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; display: block; }
.contact-item .value { font-family: var(--display); font-size: 1.6rem; line-height: 1.3; overflow-wrap: anywhere; user-select: all; }
.contact-item address { font-style: normal; }
.contact-note { color: var(--muted); font-size: .95rem; max-width: 40rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; letter-spacing: .08em; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .mono { height: 2rem; width: 2rem; }

/* Rechtstexte */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: 50rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.7rem; margin: 2.75rem 0 .75rem; color: var(--gold-light); }
.legal h3 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: #D9D2C4; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal .stand { color: var(--muted); font-size: .9rem; margin-top: 3rem; }

/* Platzhalter: vor Veröffentlichung ersetzen */
.ph { background: var(--ph-bg); color: var(--ph-fg); border: 1px dashed var(--ph-fg); padding: 0 .35em; border-radius: 3px; font-family: var(--body); font-style: normal; font-size: .92em; }
.ph-note { border: 1px dashed var(--ph-fg); background: var(--ph-bg); color: var(--ph-fg); padding: 1rem 1.25rem; margin: 0 0 2rem; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-seal .seal-ring { animation: none; }
  .btn { transition: none; }
}

/* Kündigung (§ 312k BGB) */
.site-footer .cancel-link { color: var(--gold-light); border: 1px solid var(--gold); padding: .35rem .8rem; }
.site-footer .cancel-link:hover { background: var(--gold); color: var(--onyx); }
.cancel-form { display: grid; gap: 1.75rem; margin-top: 2rem; }
.cancel-form fieldset { border: 1px solid var(--line); padding: 1.25rem 1.25rem 1.5rem; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.cancel-form legend { font-family: var(--display); font-size: 1.35rem; color: var(--gold-light); padding: 0 .4rem; }
.cancel-form .row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.cancel-form .fld { display: grid; gap: .35rem; min-width: 0; }
.cancel-form label { font-size: .95rem; color: #D9D2C4; }
.cancel-form input[type="text"], .cancel-form input[type="email"], .cancel-form input[type="date"], .cancel-form input[type="tel"], .cancel-form textarea {
  width: 100%; font: inherit; color: var(--ivory); background: var(--onyx-2); border: 1px solid #4A4237; border-radius: 2px; padding: .65rem .8rem;
}
.cancel-form input:focus, .cancel-form textarea:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; border-color: var(--gold); }
.cancel-form .choice { display: flex; align-items: center; gap: .6rem; }
.cancel-form .choice input { accent-color: var(--gold); width: 1.1rem; height: 1.1rem; margin: 0; }
.cancel-form .btn { justify-self: start; font-size: .9rem; padding: 1rem 2rem; cursor: pointer; }
.form-hint { color: var(--muted); font-size: .95rem; }
.form-error { border: 1px solid #E08A6B; color: #F3B9A3; padding: .75rem 1rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.declaration { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--onyx-2); border: 1px solid var(--line); padding: 1.25rem; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; color: var(--ivory); }
button.btn { font-family: inherit; background: transparent; cursor: pointer; }
@media print { .site-header, .site-footer, .btn { display: none; } body { background: #fff; color: #000; } .declaration { color: #000; background: #fff; } }

/* Kontaktformular */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form { margin-top: 0; gap: 1.25rem; }
.contact-aside { display: grid; gap: 2rem; }
.contact-form .privacy-check { align-items: flex-start; }
.contact-form .privacy-check input { margin-top: .3rem; flex: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-layout { grid-template-columns: minmax(0, 40rem); }

/* Cookie-/Einwilligungs-Banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 0 max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); outline: none; }
.consent-inner { max-width: 60rem; margin-inline: auto; background: #131216; border: 1px solid var(--gold); box-shadow: 0 -10px 40px rgba(0,0,0,.6); padding: 1.25rem 1.5rem; max-height: calc(100vh - 24px); overflow-y: auto; }
.consent h2 { font-size: 1.5rem; margin-bottom: .5rem; color: var(--gold-light); }
.consent p { color: #D9D2C4; font-size: .95rem; line-height: 1.6; margin: 0 0 1rem; }
.consent-details { display: grid; gap: .75rem; margin-bottom: 1rem; }
.consent-cat { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--line); }
.consent-cat input { margin-top: .3rem; accent-color: var(--gold); width: 1.1rem; height: 1.1rem; flex: none; }
.consent-cat label { display: grid; gap: .15rem; font-size: .95rem; }
.consent-cat label span { color: var(--muted); font-size: .85rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
/* Ablehnen und Akzeptieren sind bewusst identisch gestaltet. */
.consent-btn { background: transparent; border: 1px solid var(--gold); color: var(--gold-light); padding: .8rem 1.4rem; font: inherit; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.consent-btn:hover { background: var(--gold); color: var(--onyx); }
.consent-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: .8rem .5rem; text-transform: none; letter-spacing: 0; }
.consent-link:hover { color: var(--gold-light); background: none; }
.consent-open { background: none; border: 0; padding: 0; font: inherit; letter-spacing: .08em; color: var(--muted); cursor: pointer; }
.consent-open:hover { color: var(--gold-light); }
@media (max-width: 560px) { .consent-btn { flex: 1 1 100%; text-align: center; justify-content: center; } .consent-inner { padding: 1rem; } }

/* Barrierefreiheit-Button und Darstellungsoptionen */
.a11y-btn { position: fixed; left: 0; top: 40%; z-index: 90; padding-left: max(.65rem, env(safe-area-inset-left, 0px)) !important; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem .6rem .65rem; background: #131216; color: var(--gold-light); border: 1px solid var(--gold); border-left: 0; border-radius: 0 999px 999px 0; font: inherit; font-size: .8125rem; letter-spacing: .06em; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.5); }
.a11y-btn svg { width: 1.6rem; height: 1.6rem; flex: none; }
.a11y-btn:hover { background: var(--gold); color: var(--onyx); }
.a11y-panel { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(40% + 3.4rem); z-index: 91; width: min(21rem, calc(100vw - 24px)); max-height: calc(60vh - 4rem); overflow-y: auto; background: #131216; border: 1px solid var(--gold); padding: 1.1rem; display: grid; gap: .6rem; box-shadow: 0 10px 40px rgba(0,0,0,.6); outline: none; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.4rem; color: var(--gold-light); }
.a11y-panel button, .a11y-panel a { font: inherit; font-size: .9rem; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--ivory); font-size: .9rem; }
.a11y-size { display: flex; align-items: center; gap: .5rem; }
.a11y-size output { min-width: 3.6rem; text-align: center; font-size: .85rem; color: var(--muted); }
.a11y-panel button { background: transparent; color: var(--ivory); border: 1px solid #5A5143; padding: .55rem .8rem; cursor: pointer; text-align: left; }
.a11y-size button { text-align: center; min-width: 2.6rem; }
.a11y-panel button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-light); }
.a11y-panel button:disabled { opacity: .4; cursor: not-allowed; }
.a11y-tg[aria-pressed="true"] { background: var(--gold); color: var(--onyx); border-color: var(--gold); font-weight: 500; }
.a11y-tg[aria-pressed="true"]::before { content: "✓ "; }
.a11y-foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.a11y-foot a { color: var(--gold-light); }
.a11y-note { margin: 0; font-size: .8rem; color: var(--muted); }
.a11y-close { text-align: center !important; }
@media (max-width: 560px) { .a11y-btn { padding: .55rem .6rem .55rem .5rem !important; } .a11y-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  }
@media print { .a11y-btn, .a11y-panel, .consent { display: none !important; } }

html.a11y-contrast { --onyx: #000; --onyx-2: #000; --ivory: #fff; --muted: #EDEDED; --line: #8A8A8A; --gold: #FFD76A; --gold-light: #FFE59A; --gold-gradient: linear-gradient(#FFE59A, #FFE59A); }
html.a11y-contrast .a11y-btn, html.a11y-contrast .a11y-panel, html.a11y-contrast .consent-inner { background: #000; border-color: #FFE59A; }
html.a11y-contrast .legal p, html.a11y-contrast .legal li { color: #fff; }
html.a11y-contrast .hero { background: #000; }
html.a11y-simple { --display: var(--body); }
html.a11y-simple h1, html.a11y-simple h2, html.a11y-simple h3 { font-weight: 500; }
html.a11y-simple .about blockquote, html.a11y-simple .hero-copy h1 em { font-style: normal; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px; }
html.a11y-still, html.a11y-still * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.consent-details[hidden] { display: none; }
