/* ═══════════════════════════════════════════════
   DEFERIA Block Theme – extra.css
   Detail-Stile, die theme.json nicht abdeckt.
   Farben referenzieren wo möglich die theme.json-Presets.
═══════════════════════════════════════════════ */

/* ── Noise-Overlay ───────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9000; opacity: .3;
}

/* ── Eyebrow ──────────────────────────────────── */
.deferia-eyebrow {
  display: flex; align-items: center; gap: .65rem;
  font-size: .68rem !important; letter-spacing: .22em;
  color: var(--wp--preset--color--gold) !important;
  text-transform: uppercase; margin-bottom: 1rem !important;
}
.deferia-eyebrow::before {
  content: ''; width: 1.4rem; height: 1px;
  background: var(--wp--preset--color--gold); flex-shrink: 0;
}
.deferia-eyebrow--center { justify-content: center; }
.deferia-eyebrow--center::before { display: none; }
.deferia-eyebrow--amber { color: #c49050 !important; }
.deferia-eyebrow--amber::before { background: #c49050; }

/* ── Header ───────────────────────────────────── */
.deferia-header {
  background: rgba(8,8,13,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--wp--preset--color--border);
  z-index: 500;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}
.deferia-header__inner { width: 100%; align-items: center; }
.deferia-logo a,
.deferia-logo {
  font-family: var(--wp--preset--font-family--display) !important;
  font-weight: 800 !important;
  font-size: 1.12rem !important;
  letter-spacing: .22em;
  color: var(--wp--preset--color--contrast) !important;
  text-decoration: none;
}
.deferia-nav .wp-block-navigation-item__content {
  font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.deferia-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--gold);
}

/* ── Hero ─────────────────────────────────────── */
.deferia-hero { position: relative; overflow: hidden; }
.deferia-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,166,74,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,166,74,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 85% 85% at 100% 50%, black 20%, transparent 72%);
  pointer-events: none;
}
.deferia-hero > * { position: relative; z-index: 1; }
.deferia-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem) !important;
  line-height: 1.04 !important;
}
.deferia-hero__title em { font-style: normal; color: var(--wp--preset--color--gold); }
.deferia-hero__sub {
  color: var(--wp--preset--color--muted) !important;
  max-width: 46ch; line-height: 1.8 !important;
  margin-top: 1.35rem !important;
}
.deferia-hero__btns { margin-top: 2rem !important; gap: .9rem; }
.deferia-hero__badge { max-width: 400px; background: rgba(201,166,74,.04); align-items: center; gap: .9rem !important; }
.deferia-hero__badge-year {
  font-family: var(--wp--preset--font-family--display) !important;
  font-weight: 800 !important; font-size: 1.5rem !important;
  color: var(--wp--preset--color--gold) !important;
  line-height: 1 !important; margin: 0 !important; flex-shrink: 0;
}
.deferia-hero__badge p:last-child { color: var(--wp--preset--color--muted) !important; margin: 0 !important; }

/* hero SVG animation */
.deferia-hero__visual { width: 100%; }
.deferia-hero__svg { width: 100%; height: auto; overflow: visible; }
.dh-block { transform-origin: left center; animation: dhBuild .6s ease-out backwards; }
.dh-b1 { animation-delay: .1s; } .dh-b2 { animation-delay: .25s; }
.dh-b3 { animation-delay: .35s; } .dh-b4 { animation-delay: .5s; }
.dh-b5 { animation-delay: .6s; } .dh-b6 { animation-delay: .7s; }
.dh-b7 { animation-delay: .85s; }
@keyframes dhBuild { from { opacity: 0; transform: scaleX(.3); } to { opacity: 1; transform: scaleX(1); } }
.dh-spark { animation: dhFloat 4s ease-in-out infinite; }
@keyframes dhFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-6px,8px); } }

/* ── Section heads ────────────────────────────── */
.deferia-section-head { margin-bottom: 0; }
.deferia-lead {
  color: var(--wp--preset--color--muted) !important;
  line-height: 1.8 !important; max-width: 52ch;
}

/* ── Process steps ────────────────────────────── */
.deferia-steps { gap: 1px !important; }
.deferia-step { position: relative; transition: background .3s, border-color .3s; }
.deferia-step:hover { border-color: rgba(201,166,74,.32) !important; }
.deferia-step__num {
  font-family: var(--wp--preset--font-family--mono) !important;
  font-size: 1.6rem !important; font-weight: 400 !important;
  color: var(--wp--preset--color--gold) !important;
  opacity: .4; margin: 0 0 .6rem 0 !important; line-height: 1 !important;
}
.deferia-step:hover .deferia-step__num { opacity: 1; }
.deferia-step__title { font-size: 1.05rem !important; margin: 0 0 .5rem 0 !important; }
.deferia-step__desc { color: var(--wp--preset--color--muted) !important; line-height: 1.65 !important; margin: 0 !important; }

/* ── Advantages ───────────────────────────────── */
.deferia-adv { position: relative; }
.deferia-adv__card {
  padding: 2rem !important;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  background: var(--wp--preset--color--surface);
  transition: border-color .3s, transform .3s;
}
.deferia-adv__card:hover { border-color: rgba(201,166,74,.32); transform: translateY(-4px); }
.deferia-adv__icon {
  font-size: 1.8rem !important; margin: 0 0 1rem 0 !important;
  line-height: 1 !important;
}
.deferia-adv__card h3 { font-size: 1.1rem !important; margin: 0 0 .6rem 0 !important; }

/* ── Music teaser (own amber CI) ──────────────── */
.deferia-music-teaser {
  background: #0b0910;
  position: relative; overflow: hidden;
}
.deferia-music-teaser::before {
  content: ''; position: absolute; top: -180px; right: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,120,45,.08) 0%, transparent 65%);
  pointer-events: none;
}
.deferia-music-teaser > * { position: relative; z-index: 1; }
.deferia-music-teaser__title { color: #ecdcc0 !important; }
.deferia-music-teaser__desc { color: rgba(236,220,192,.5) !important; line-height: 1.8 !important; }
.deferia-music-teaser__badge { background: rgba(255,255,255,.02); }
.deferia-mt-stat__num {
  font-family: var(--wp--preset--font-family--display) !important;
  font-weight: 800 !important; font-size: 2.4rem !important;
  color: #c49050 !important; line-height: 1 !important;
  margin: 0 0 .5rem 0 !important;
}

/* amber button style */
.is-style-amber .wp-block-button__link {
  background: #c49050 !important; color: #0b0910 !important;
}
.is-style-amber .wp-block-button__link:hover { background: #d8a868 !important; }

/* ── KI on request chips ──────────────────────── */
.deferia-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem !important; margin: 0 !important;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 30px; font-size: .82rem !important;
  color: var(--wp--preset--color--muted) !important;
  transition: border-color .25s, color .25s;
}
.deferia-chip:hover { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--gold) !important; }

/* ── Contact form ─────────────────────────────── */
.deferia-cf { text-align: left; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.deferia-cf__hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.deferia-cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.deferia-cf__field { display: flex; flex-direction: column; gap: .4rem; }
.deferia-cf__field label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: .63rem; letter-spacing: .14em;
  color: var(--wp--preset--color--muted); text-transform: uppercase;
}
.deferia-cf__field input,
.deferia-cf__field textarea,
.deferia-cf__field select {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 4px; padding: .82rem 1rem;
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--body);
  font-size: .88rem; font-weight: 300;
  transition: border-color .25s; outline: none; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.deferia-cf__field input:focus,
.deferia-cf__field textarea:focus,
.deferia-cf__field select:focus { border-color: var(--wp--preset--color--gold); }
.deferia-cf__field input::placeholder,
.deferia-cf__field textarea::placeholder { color: var(--wp--preset--color--muted); }
.deferia-cf__field textarea { resize: vertical; min-height: 130px; }
.deferia-cf__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636382' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.deferia-cf__field select option { background: #1a1a28; color: var(--wp--preset--color--contrast); }
.deferia-cf__foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .5rem; }
.deferia-cf__submit {
  background: var(--wp--preset--color--gold); color: var(--wp--preset--color--base);
  border: none; border-radius: 4px; cursor: pointer;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .82rem 1.75rem;
  transition: background .25s, transform .25s;
}
.deferia-cf__submit:hover:not(:disabled) { background: var(--wp--preset--color--gold-light); transform: translateY(-2px); }
.deferia-cf__submit:disabled { opacity: .6; cursor: wait; }
.deferia-cf__status { font-size: .82rem; line-height: 1.5; }
.deferia-cf__status.is-ok { color: var(--wp--preset--color--cyan); }
.deferia-cf__status.is-err { color: #e06060; }
.deferia-cf__direct {
  text-align: center; margin-top: 2rem !important;
  font-size: .78rem !important; color: var(--wp--preset--color--muted) !important;
}

/* ── Footer ───────────────────────────────────── */
.deferia-footer__inner { width: 100%; align-items: center; }
.deferia-footer__copy { color: var(--wp--preset--color--muted) !important; margin: 0 !important; }
.deferia-footer__nav .wp-block-navigation-item__content {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.deferia-footer__nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--gold); }

/* ── Legal / standard pages ───────────────────── */
.deferia-page__title { font-size: clamp(1.8rem, 3vw, 2.4rem) !important; }
.deferia-page__content { color: var(--wp--preset--color--muted); line-height: 1.85; }
.deferia-page__content h2 { color: var(--wp--preset--color--contrast); font-size: 1.1rem !important; margin: 2rem 0 .8rem !important; }
.deferia-page__content h3 { color: var(--wp--preset--color--contrast); font-size: .95rem !important; margin: 1.5rem 0 .6rem !important; }
.deferia-page__content a { color: var(--wp--preset--color--gold); }
.deferia-page__content ul { padding-left: 1.4rem; }

/* ── Scroll reveal ────────────────────────────── */
.deferia-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.deferia-reveal.on { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 781px) {
  .deferia-steps { grid-template-columns: 1fr !important; }
  .deferia-cf__row { grid-template-columns: 1fr; }
  .deferia-hero__visual-col { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dh-block, .dh-spark, .deferia-reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════
   MUSIK-BEREICH (eigene Amber-Identität)
═══════════════════════════════════════════════ */

/* Alias-Seiten + Hub bekommen warmen Hintergrund */
.deferia-alias,
.deferia-music-hub-hero,
.deferia-music-projects { background: #0b0910; }

/* Alias Hero */
.deferia-alias-hero { position: relative; overflow: hidden; }
.deferia-alias-hero::before {
  content: ''; position: absolute; top: -150px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,120,45,.08) 0%, transparent 65%);
  pointer-events: none;
}
.deferia-alias-hero > * { position: relative; z-index: 1; }
.deferia-alias-hero__title { color: #ecdcc0 !important; font-size: clamp(2.2rem,4.5vw,3.6rem) !important; }
.deferia-alias-hero__tagline { color: #c49050 !important; font-style: italic; margin-top: .5rem !important; }
.deferia-alias-hero__intro { color: rgba(236,220,192,.55) !important; line-height: 1.8 !important; max-width: 60ch; margin-top: 1.5rem !important; }

/* Alias body */
.deferia-alias-body { background: #0b0910; }
.deferia-alias-body h2 { color: #ecdcc0 !important; }
.deferia-alias-facts { background: rgba(255,255,255,.02); }
.deferia-alias-facts__list { list-style: none; padding: 0 !important; margin: 0; }
.deferia-alias-facts__list li {
  padding: .5rem 0; border-bottom: 1px solid rgba(196,144,80,.1);
  font-size: .82rem; color: rgba(236,220,192,.55);
}
.deferia-alias-facts__list li:last-child { border-bottom: none; }
.deferia-alias-facts__list strong { color: #c49050; font-weight: 500; }
.deferia-alias-embed { margin-top: 2rem; }
.deferia-alias-embed__hint {
  padding: 2rem; text-align: center;
  border: 1px dashed rgba(196,144,80,.3); border-radius: 8px;
  color: rgba(236,220,192,.4); font-size: .82rem;
  font-family: var(--wp--preset--font-family--mono);
}

/* Music hub */
.deferia-music-hub-hero { position: relative; overflow: hidden; }
.deferia-music-hub-hero::before {
  content: ''; position: absolute; top: -180px; right: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,120,45,.08) 0%, transparent 65%);
  pointer-events: none;
}
.deferia-music-hub-hero > * { position: relative; z-index: 1; }
.deferia-music-hub__title { color: #ecdcc0 !important; font-size: clamp(2.6rem,5vw,4rem) !important; font-style: italic; }
.deferia-music-hub__intro { color: rgba(236,220,192,.55) !important; line-height: 1.8 !important; margin-top: 1.5rem !important; }
.deferia-music-motivation h2 { color: #ecdcc0 !important; }
.deferia-music-projects h2 { color: #ecdcc0 !important; }

/* Project grid */
.deferia-project-grid { gap: 1.2rem !important; }
.deferia-project-card { background: rgba(255,255,255,.02); transition: border-color .3s, transform .3s; }
.deferia-project-card:hover { border-color: rgba(196,144,80,.4) !important; transform: translateY(-4px); }
.deferia-project-card__name { color: #ecdcc0 !important; font-size: 1.2rem !important; margin: 0 0 .6rem 0 !important; }
.deferia-project-card__desc { color: rgba(236,220,192,.5) !important; line-height: 1.65 !important; margin: 0 0 1rem 0 !important; }
.deferia-project-card__link { margin: 0 !important; }
.deferia-project-card__link a { color: #c49050 !important; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }

@media (max-width: 781px) {
  .deferia-project-grid { grid-template-columns: 1fr !important; }
}

/* Spotify-Embed im Musik-Bereich */
.deferia-alias-embed iframe { display: block; width: 100%; border: none; }
.deferia-alias-embed { margin-top: 2.5rem; }
.deferia-alias-hero__intro { max-width: 100%; }
.deferia-project-card__tag {
  color: #c49050 !important; letter-spacing: .12em;
  text-transform: uppercase; font-size: .62rem !important;
  margin: 0 0 .6rem 0 !important;
}
