/* ============================================
   iPhone-Doc – Premium Design System v1.0
   Mobile First · CWV Optimized · Blue Accent
   ============================================ */

/* --- Scroll Animations (GPU-only: transform + opacity) --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,122,255,.12); }
  50% { box-shadow: 0 0 40px rgba(0,122,255,.25); }
}
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* =============================
   SECTIONS – Mobile First
   ============================= */
.section {
  padding: 3.5rem 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.section-sm { padding: 2.5rem 0; }
.section-dark { background: var(--c-surface); }
.section-darker { background: var(--c-bg); }
.section-gradient {
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.section-header p {
  color: var(--c-text-muted);
  font-size: .95rem;
  line-height: 1.75;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--c-accent);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: .75rem;
  padding: .3rem .75rem;
  background: rgba(0,122,255,.08);
  border: 1px solid rgba(0,122,255,.15);
  border-radius: 100px;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; contain-intrinsic-size: auto 800px; }
  .section-sm { padding: 3.5rem 0; }
  .section-header { margin-bottom: 3.5rem; }
  .section-header p { font-size: 1.08rem; }
  .section-label { font-size: .75rem; padding: .35rem .85rem; }
}
@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
}

/* =============================
   HERO – Decorative pseudo-elements
   ============================= */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,122,255,.06) 0%, rgba(0,122,255,.02) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,200,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero::before { width: 700px; height: 700px; right: -15%; }
  .hero::after { width: 500px; height: 500px; }
}
@media (min-width: 1024px) {
  .hero::before { width: 900px; height: 900px; }
}

/* =============================
   BUTTONS – Extended styles
   ============================= */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .25s;
}
.btn-primary:hover::after { opacity: 1; }
.btn-outline:hover {
  background: rgba(0,122,255,.05);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  color: var(--c-white);
  border-color: rgba(255,255,255,.2);
}
.btn-emergency:hover {
  box-shadow: 0 8px 30px rgba(204,34,0,.4);
}

/* =============================
   TRUST BADGES – Hover
   ============================= */
.trust-badge {
  transition: background .2s, border-color .2s;
}
.trust-badge:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(0,122,255,.15);
}

/* =============================
   CARDS – Mobile First
   ============================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  display: block;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
  text-align: center;
  contain: layout style;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), rgba(0,122,255,.0));
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(0,122,255,.1);
  border-color: rgba(0,122,255,.2);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,122,255,.12), rgba(0,122,255,.04));
  color: var(--c-accent);
  margin: 0 auto 1rem;
  overflow: hidden;
  transition: transform .3s;
}
.card:hover .card-icon { transform: scale(1.05); }
.card-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
}
.card h3 {
  margin-bottom: .5rem;
  transition: color .2s;
}
.card:hover h3 { color: var(--c-accent); }
.card p {
  color: var(--c-text-muted);
  font-size: .88rem;
  line-height: 1.65;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-accent);
  transition: gap .2s;
}
.card:hover .card-link { gap: .65rem; }
.card-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: .875rem;
  border-top: 1px solid var(--c-border);
  font-size: .75rem;
  color: var(--c-text-muted);
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: .3rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .card { padding: 1.75rem; text-align: left; }
  .card-icon { margin: 0 0 1.125rem 0; }
  .card-meta { justify-content: flex-start; gap: 1.25rem; }
}
@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 2rem; }
  .card-icon {
    width: 52px; height: 52px;
    min-width: 52px; min-height: 52px;
    margin-bottom: 1.25rem;
  }
  .card-icon svg { width: 26px; height: 26px; max-width: 26px; max-height: 26px; }
  .card p { font-size: .92rem; }
  .card-link { font-size: .88rem; }
  .card-meta { font-size: .8rem; }
}

/* =============================
   SERVICE DETAIL BLOCKS
   ============================= */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--c-border);
  text-align: center;
  contain: layout style;
}
.service-block:last-child { border-bottom: none; }
.service-block-inner {
  max-width: 860px;
  margin: 0 auto;
}
.service-block h2 { margin-bottom: .5rem; }
.service-block .label {
  color: var(--c-accent);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .75rem;
  display: inline-flex;
  padding: .2rem .6rem;
  background: rgba(0,122,255,.08);
  border-radius: 100px;
}
.service-block p {
  color: var(--c-text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: .92rem;
}
.service-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1.5rem;
}
.service-info-item {
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color .2s;
  text-align: center;
}
.service-info-item:hover { border-color: rgba(0,122,255,.2); }
.service-info-item strong {
  display: block;
  color: var(--c-white);
  font-size: .78rem;
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.service-info-item span {
  color: var(--c-text-muted);
  font-size: .85rem;
}

@media (min-width: 640px) {
  .service-info-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .service-info-item { padding: 1.25rem 1.5rem; }
}
@media (min-width: 768px) {
  .service-block { padding: 3.5rem 0; text-align: left; }
  .service-block .label { font-size: .75rem; padding: .25rem .65rem; margin-bottom: 1rem; }
  .service-info-item { text-align: left; }
  .service-info-item strong { font-size: .82rem; margin-bottom: .3rem; }
  .service-info-item span { font-size: .88rem; }
}

/* =============================
   FAQ
   ============================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.125rem .25rem;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  gap: .75rem;
  transition: color .2s;
}
.faq-question:hover { color: var(--c-accent); }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,122,255,.08);
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  background: rgba(0,122,255,.15);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding: 0 .25rem 1.25rem;
  color: var(--c-text-muted);
  font-size: .88rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .faq-question { padding: 1.5rem .5rem; font-size: 1.05rem; gap: 1rem; }
  .faq-question::after { width: 32px; height: 32px; font-size: 1.5rem; }
  .faq-answer p { padding: 0 .5rem 1.5rem; font-size: .95rem; }
}

/* =============================
   CTA SECTION
   ============================= */
.cta-section {
  padding: 3.5rem 0;
  text-align: center;
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,122,255,.04) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section h2 { margin-bottom: .625rem; position: relative; }
.cta-section p {
  color: var(--c-text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
  font-size: .95rem;
}
.cta-section .hero-ctas { justify-content: center; position: relative; }

@media (min-width: 768px) {
  .cta-section { padding: 5rem 0; }
  .cta-section::before { width: 800px; height: 800px; }
  .cta-section p { max-width: 550px; margin-bottom: 2.5rem; font-size: 1.05rem; }
}
@media (min-width: 1024px) { .cta-section { padding: 6rem 0; } }

/* =============================
   BREADCRUMB
   ============================= */
.breadcrumb { padding: 1rem 0; font-size: .75rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; justify-content: center; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: .35rem; color: rgba(255,255,255,.2); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb li:last-child { color: var(--c-text); }

@media (min-width: 768px) {
  .breadcrumb { padding: 1.25rem 0; font-size: .8rem; }
  .breadcrumb ol { justify-content: flex-start; }
}

/* =============================
   PROCESS STEPS
   ============================= */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
  max-width: 400px;
  margin: 0 auto;
}
.process-step {
  text-align: center;
  counter-increment: step;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color .2s;
  contain: layout style;
}
.process-step:hover { border-color: rgba(0,122,255,.2); }
.process-step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,122,255,.15), rgba(0,122,255,.05));
  color: var(--c-accent);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  border: 2px solid rgba(0,122,255,.2);
}
.process-step h3 { font-size: .95rem; margin-bottom: .375rem; }
.process-step p { font-size: .85rem; color: var(--c-text-muted); line-height: 1.6; }

@media (min-width: 640px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); max-width: none; gap: 1.5rem; }
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-step { padding: 2rem 1.5rem; }
  .process-step::before { width: 56px; height: 56px; font-size: 1.3rem; margin-bottom: 1.25rem; }
  .process-step h3 { font-size: 1rem; margin-bottom: .5rem; }
  .process-step p { font-size: .88rem; }
}

/* =============================
   FOOTER
   ============================= */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 3rem 0 2rem;
  margin-bottom: 52px;
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer-logo { font-size: 1.35rem; display: block; margin-bottom: .875rem; }
.footer-desc {
  color: var(--c-text-muted); font-size: .85rem;
  margin-bottom: 1.125rem; line-height: 1.7;
  max-width: 360px; margin-left: auto; margin-right: auto;
}
.footer-contact { display: flex; flex-direction: column; gap: .35rem; align-items: center; }
.footer-contact a { color: var(--c-text-muted); font-size: .85rem; transition: color .2s; }
.footer-contact a:hover { color: var(--c-accent); }
.site-footer h4 { color: var(--c-white); font-size: .82rem; font-weight: 600; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.mt-1 { margin-top: 1.5rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li a { color: var(--c-text-muted); font-size: .82rem; transition: color .2s; }
.site-footer li a:hover { color: var(--c-accent); }
.footer-region { color: var(--c-text-muted); font-size: .8rem; line-height: 1.6; }
.footer-hours { border-collapse: collapse; font-size: .82rem; color: var(--c-text-muted); margin: 0 auto .75rem; }
.footer-hours td { padding: .2rem 0; }
.footer-hours td:first-child { padding-right: 1.25rem; color: var(--c-text); }
.footer-address { font-size: .82rem; color: var(--c-text-muted); }
.footer-sister { margin-top: 2rem; padding: 1rem 1.25rem; border-radius: .75rem; background: rgba(255,255,255,.03); border: 1px solid var(--c-border); text-align: center; font-size: .82rem; color: var(--c-text-muted); }
.footer-sister a { color: var(--c-accent); font-weight: 600; }
.footer-sister a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); text-align: center; font-size: .75rem; color: var(--c-text-muted); }
.footer-legal { margin-top: .5rem; display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.footer-legal a { color: var(--c-text-muted); font-size: .75rem; transition: color .2s; }
.footer-legal a:hover { color: var(--c-accent); }
.footer-legal span { color: rgba(255,255,255,.15); }

@media (min-width: 768px) {
  .site-footer { padding: 5rem 0 2.5rem; margin-bottom: 0; text-align: left; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
  .footer-logo { font-size: 1.5rem; margin-bottom: 1rem; }
  .footer-desc { font-size: .88rem; margin-left: 0; margin-right: 0; max-width: none; margin-bottom: 1.25rem; }
  .footer-contact { align-items: flex-start; }
  .footer-contact a { font-size: .88rem; }
  .site-footer h4 { font-size: .85rem; margin-bottom: .875rem; }
  .mt-1 { margin-top: 1.75rem; }
  .site-footer li a { font-size: .85rem; }
  .footer-region { font-size: .82rem; }
  .footer-hours { font-size: .85rem; margin: 0 0 .875rem; }
  .footer-address { font-size: .85rem; }
  .footer-bottom { margin-top: 3.5rem; padding-top: 2rem; font-size: .78rem; }
}

/* =============================
   UTILITIES
   ============================= */
.text-accent { color: var(--c-accent); }
.text-muted { color: var(--c-text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* =============================
   PROSE CONTENT
   ============================= */
.prose { max-width: 820px; margin: 0 auto; text-align: center; }
.prose p { margin-bottom: 1rem; color: var(--c-text-muted); line-height: 1.75; font-size: .9rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: .875rem; padding-bottom: .5rem; border-bottom: 1px solid var(--c-border); }
.prose h3 { margin-top: 1.75rem; margin-bottom: .5rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.25rem; color: var(--c-text-muted); text-align: left; }
.prose li { margin-bottom: .5rem; line-height: 1.7; font-size: .9rem; }
.prose strong { color: var(--c-white); }

@media (min-width: 768px) {
  .prose { text-align: left; }
  .prose p { margin-bottom: 1.125rem; line-height: 1.8; font-size: .95rem; }
  .prose h2 { margin-top: 3rem; margin-bottom: 1rem; }
  .prose h3 { margin-top: 2rem; margin-bottom: .625rem; }
  .prose ul, .prose ol { padding-left: 1.5rem; }
  .prose li { font-size: .95rem; }
}

/* =============================
   EMERGENCY BANNER
   ============================= */
.emergency-banner {
  background: linear-gradient(135deg, rgba(204,34,0,.12), rgba(204,34,0,.04));
  border: 1px solid rgba(204,34,0,.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.emergency-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #cc2200;
  border-radius: 4px 0 0 4px;
}
.emergency-banner p { color: var(--c-text); margin: 0; font-weight: 500; font-size: .9rem; }
.emergency-banner strong { color: #ff4422; }

@media (min-width: 768px) {
  .emergency-banner { padding: 1.75rem 2rem; flex-direction: row; justify-content: space-between; gap: 1.25rem; text-align: left; }
  .emergency-banner p { padding-left: .5rem; }
}

/* =============================
   CONTACT PAGE
   ============================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-form label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--c-text); margin-bottom: .35rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: .8rem 1rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text); font-family: var(--font); font-size: 16px;
  margin-bottom: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0,122,255,.1);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-card {
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 1rem;
  transition: border-color .2s;
  text-align: center;
}
.contact-info-card:hover { border-color: rgba(255,255,255,.2); }
.contact-info-card h3 { margin-bottom: 1rem; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: .875rem; color: var(--c-text-muted); font-size: .88rem; text-align: left;
}
.contact-info-item svg {
  width: 18px; height: 18px; max-width: 18px; max-height: 18px;
  color: var(--c-accent); flex-shrink: 0; margin-top: 3px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
  .contact-form input, .contact-form select, .contact-form textarea {
    padding: .85rem 1.125rem; margin-bottom: 1.125rem;
  }
  .contact-info-card { padding: 2rem; margin-bottom: 1.25rem; text-align: left; }
  .contact-info-card h3 { margin-bottom: 1.125rem; }
  .contact-info-item { gap: .875rem; font-size: .92rem; }
  .contact-info-item svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
}

/* =============================
   404 PAGE
   ============================= */
.error-page {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; min-height: 50vh; padding: 3rem 1rem;
}
.error-code {
  font-size: clamp(4rem, 15vw, 12rem); font-weight: 700;
  background: linear-gradient(180deg, rgba(0,122,255,.25), rgba(0,122,255,.05));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .error-page { min-height: 60vh; padding: 4rem 1rem; }
}

/* =============================
   COOKIE BANNER – DSGVO
   ============================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #0d1119;
  background: rgba(11,15,23,.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
  -webkit-box-shadow: 0 -8px 40px rgba(0,0,0,.5);
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
  padding: 1.25rem 1rem;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  -webkit-transition: -webkit-transform .35s ease;
  transition: transform .35s ease;
}
.cookie-banner.visible {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.cookie-banner-text h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: var(--c-white);
}
.cookie-banner-text p {
  font-size: .82rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: .5rem;
}
.cookie-link {
  font-size: .78rem;
  color: var(--c-accent);
  text-decoration: underline;
  -webkit-text-decoration-skip: ink;
  text-underline-offset: 2px;
}
.cookie-link:hover {
  color: var(--c-accent-hover);
}

.cookie-actions {
  margin-top: 1rem;
}
.cookie-btn-group {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: .625rem;
}
.cookie-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  -webkit-transition: all .2s;
  transition: all .2s;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 1.4;
  text-align: center;
}
.cookie-btn-accept {
  background: linear-gradient(135deg, var(--c-accent), #005ecb);
  color: var(--c-white);
  -webkit-box-shadow: 0 2px 10px rgba(0,122,255,.2);
  box-shadow: 0 2px 10px rgba(0,122,255,.2);
}
.cookie-btn-accept:hover {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  -webkit-box-shadow: 0 4px 20px rgba(0,122,255,.35);
  box-shadow: 0 4px 20px rgba(0,122,255,.35);
}
.cookie-btn-reject {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,.25);
}
.cookie-btn-reject:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(0,122,255,.05);
}
.cookie-details-toggle {
  display: block;
  margin-top: .75rem;
  background: none;
  border: none;
  color: var(--c-text-muted);
  font-size: .78rem;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: .35rem 0;
  width: 100%;
  text-align: center;
  -webkit-appearance: none;
}
.cookie-details-toggle:hover {
  color: var(--c-accent);
}

.cookie-categories {
  margin-top: 1rem;
  border-top: 1px solid var(--c-border);
  padding-top: 1rem;
}
.cookie-category {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.cookie-category:last-of-type {
  border-bottom: none;
  margin-bottom: .5rem;
}
.cookie-category-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: .875rem;
}

.cookie-toggle {
  position: relative;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-toggle input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.cookie-toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  -webkit-transition: background .25s, border-color .25s;
  transition: background .25s, border-color .25s;
}
.cookie-toggle-thumb {
  display: block;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #8a92a6;
  border-radius: 50%;
  -webkit-transition: -webkit-transform .25s, background .25s;
  transition: transform .25s, background .25s;
}
.cookie-toggle input:checked + .cookie-toggle-track {
  background: rgba(0,122,255,.2);
  border-color: var(--c-accent);
}
.cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb {
  -webkit-transform: translateX(20px);
  transform: translateX(20px);
  background: var(--c-accent);
}

.cookie-toggle-locked {
  opacity: .6;
  cursor: not-allowed;
  background: rgba(0,122,255,.15);
  border-color: rgba(0,122,255,.25);
}
.cookie-toggle-locked .cookie-toggle-thumb {
  -webkit-transform: translateX(20px);
  transform: translateX(20px);
  background: var(--c-accent);
}

.cookie-category-info {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}
.cookie-category-info strong {
  display: block;
  color: var(--c-white);
  font-size: .85rem;
  margin-bottom: .2rem;
}
.cookie-category-info span {
  display: block;
  color: var(--c-text-muted);
  font-size: .75rem;
  line-height: 1.55;
}
.cookie-categories .cookie-btn-group {
  margin-top: 1rem;
  padding-top: .75rem;
}

@media (min-width: 768px) {
  .cookie-banner {
    padding: 1.5rem 2rem;
  }
  .cookie-banner-inner {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-items: center;
    align-items: center;
    gap: 1.5rem;
  }
  .cookie-banner-text {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
  }
  .cookie-banner-text h3 {
    font-size: 1.1rem;
  }
  .cookie-banner-text p {
    font-size: .85rem;
    margin-bottom: .5rem;
  }
  .cookie-actions {
    margin-top: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
  }
  .cookie-btn-group {
    -webkit-flex-direction: row;
    flex-direction: row;
    gap: .75rem;
  }
  .cookie-btn {
    width: auto;
    padding: .75rem 1.5rem;
    white-space: nowrap;
  }
  .cookie-details-toggle {
    text-align: right;
  }
  .cookie-categories {
    width: 100%;
    -webkit-flex-basis: 100%;
    flex-basis: 100%;
  }
  .cookie-category-info span {
    font-size: .78rem;
  }
}

/* =============================
   LEGAL PAGES
   ============================= */
.legal-page {
  padding: 2rem 0 3rem;
}
.legal-page h1 {
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: .75rem;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--c-border);
}
.legal-page h3 {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  font-size: clamp(.95rem, 2vw, 1.15rem);
}
.legal-page p, .legal-page li {
  color: var(--c-text-muted);
  font-size: .88rem;
  line-height: 1.75;
}
.legal-page ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-page li {
  margin-bottom: .35rem;
}
.legal-page strong {
  color: var(--c-white);
}
.legal-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px) {
  .legal-page {
    padding: 3rem 0 5rem;
  }
  .legal-page h2 {
    margin-top: 2.5rem;
  }
  .legal-page p, .legal-page li {
    font-size: .92rem;
  }
}

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