/* ════════════════════════════════════════════════════════════════
   LOGIKATO · responsive.css
   Polish-Layer für Breakpoints jenseits des Standard-Mobile-Cuts.
   
   Hierarchy der Breakpoints im Projekt:
     · <480px       — Phones eng (HIER)
     · 481-768px    — Mobile-Standard (sections.css, hud.css, preloader.css)
     · 769-1024px   — Small Tablets (HIER)
     · 1025-1600px  — Desktop Standard (keine Overrides nötig)
     · >1600px      — Large Desktop (HIER)
   
   Plus orthogonale Queries:
     · landscape + niedrige Höhe — Hero-Adjustments
     · (hover: none) — Touch-Geräte
     · (forced-colors: active) — High-Contrast
     · print
   ════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════
   1 · EXTRA SMALL PHONES — <480px
   Engzieht wo der 768er-Cut noch zu großzügig ist.
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

  :root {
    --container-pad: 1rem;
  }

  /* Hero — Headline weiter dimmen für 320px-Display */
  .hero__headline {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
    line-height: 1.0;
  }

  .hero__lead {
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  /* HUD — Reticle und Panel auf das absolute Minimum */
  .hud__reticle {
    width: 36px;
    height: 60px;
    top: var(--sp-3);
  }

  .hud__panel {
    height: 44px;
    width: 92%;
    bottom: var(--sp-3);
  }

  .hud__side {
    width: 22px;
    height: 18px;
  }

  /* Preloader — kleinere Riesenzahl */
  .preloader__counter {
    font-size: clamp(2.75rem, 22vw, 5rem);
  }

  .preloader__terminal {
    font-size: 0.5625rem;     /* 9px — Grenze der Lesbarkeit, aber Boot ist kurz */
    top: var(--sp-4);
    left: var(--sp-4);
  }

  .preloader__bar {
    width: 60px;
  }

  /* Service-Card Riesennummer kleiner damit sie nicht überm Title-Box steht */
  .service-card__num {
    font-size: 4rem;
    top: var(--sp-1);
    right: var(--sp-3);
  }

  /* Stats schrumpfen */
  .stat__num {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  /* Package-Price kompakter */
  .package__price {
    font-size: clamp(1.625rem, 7vw, 2.125rem);
  }

  /* Kontakt-E-Mail darf umbrechen */
  .contact__email {
    font-size: clamp(1.5rem, 8.5vw, 2.5rem);
    line-height: 1.1;
  }

  /* Footer zentriert auf engen Screens */
  .footer__inner {
    text-align: center;
    align-items: center;
  }

  .footer__nav {
    width: 100%;
    justify-content: center;
  }
}


/* ════════════════════════════════════════════════════════════════
   2 · LANDSCAPE MOBILE — kurze Höhe
   100dvh kann 320px sein auf einem Landscape-Phone. Der Hero darf
   nicht so quetschen dass die Headline nicht mehr passt.
   ════════════════════════════════════════════════════════════════ */

@media (max-height: 500px) and (orientation: landscape) {

  .hero {
    min-height: 560px;            /* Floor: erzwingt scrollbare Höhe */
  }

  .hero__content {
    padding-block: var(--sp-5);
    gap: var(--sp-4);
  }

  .hero__headline {
    font-size: clamp(2rem, 5vh, 3.25rem);   /* an vh statt vw */
  }

  .hero__lead {
    font-size: 0.9375rem;
  }

  /* HUD-Elemente — Reticle und Panel kleiner */
  .hud__reticle {
    height: 50px;
    width: 32px;
  }

  .hud__panel {
    height: 40px;
    bottom: var(--sp-2);
  }

  /* Preloader — fast unsichtbarer Counter */
  .preloader__counter {
    font-size: clamp(2.5rem, 14vh, 5rem);
    bottom: var(--sp-3);
    right: var(--sp-3);
  }

  .preloader__terminal {
    top: var(--sp-2);
    left: var(--sp-3);
  }
}


/* ════════════════════════════════════════════════════════════════
   3 · SMALL TABLETS — 769-1024px
   Brücke zwischen Mobile (1-col) und Desktop (3-col).
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {

  /* Services: 2-col, letzte Card spannt voll */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid > :last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--sp-3));
    margin-inline: auto;
  }

  /* Packages: 2-col, BUSINESS oben full-width zentriert */
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package--featured {
    grid-column: 1 / -1;
    transform: none;
    max-width: 540px;
    margin-inline: auto;
  }

  /* Stats: bleibt 3-col aber tightere Border-Pads */
  .stat {
    padding-inline: var(--sp-3);
  }

  /* Hero-Headline einen Tick zahmer */
  .hero__headline {
    font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  }

  /* HUD-Scales sind hier zwischen "klein" und "voll" — skaliert mit clamp */
  .hud__scale {
    width: clamp(150px, 18vw, 240px);
  }
}


/* ════════════════════════════════════════════════════════════════
   4 · LARGE DESKTOP — >1600px
   Mehr Atem für Cinema-Displays. Spacings hochziehen.
   ════════════════════════════════════════════════════════════════ */

@media (min-width: 1600px) {

  :root {
    --container-pad: 4rem;
    --section-pad: 12rem;
  }

  /* HUD-Scales weiter vom Rand — wirken sonst eingeklemmt */
  .hud__scale--left  { left:  -1vw; }
  .hud__scale--right { right: -1vw; }

  /* Showroom-Stage höher auf großen Displays — Z-Tunnel wirkt dramatischer */
  .showroom__stage {
    height: clamp(520px, 65vh, 760px) !important;
  }

  /* Hero-Content max-width hoch — sonst wirkt der Text gequetscht in der Mitte */
  .hero__content {
    max-width: 1080px;
  }
}


/* ════════════════════════════════════════════════════════════════
   5 · TOUCH-DEVICES — (hover: none)
   Auf Touch gibt es keinen "Hover-State". Brackets und Scan-Linien
   die per Hover erscheinen müssen weg — sie würden eh nie sichtbar.
   ════════════════════════════════════════════════════════════════ */

@media (hover: none) {

  /* Buttons: Eck-Brackets und Scan-Linie weg */
  .btn::before,
  .btn::after,
  .btn__scan {
    display: none;
  }

  /* Service-Card Bottom-Scan weg */
  .service-card::after {
    display: none;
  }

  /* Package Scan-Linie weg */
  .package::before {
    display: none;
  }

  /* Stattdessen: kleine bleibende Border-Highlights bei :active (Tap) */
  .btn:active,
  .service-card:active,
  .package:active {
    border-color: var(--primary);
  }

  /* Auf Touch sind Cursor-attraction-Effekte irrelevant — Synapsen
     reagieren auf touchmove, das ist OK so. Keine Override hier. */
}


/* ════════════════════════════════════════════════════════════════
   6 · HIGH-CONTRAST — forced-colors aktiv
   Windows High-Contrast und ähnliche Accessibility-Modi.
   System-Farben überschreiben unsere — wir tragen dem Rechnung.
   ════════════════════════════════════════════════════════════════ */

@media (forced-colors: active) {

  :root {
    --primary:        CanvasText;
    --primary-bright: CanvasText;
    --bone:           CanvasText;
    --bone-dim:       CanvasText;
    --ink:            Canvas;
    --ink-raised:     Canvas;
    --ink-panel:      Canvas;
  }

  /* Dekorative Layer ausblenden — würden sowieso bizarr aussehen */
  .hud,
  .hero__bg,
  .showroom__synapses,
  .contact__reticle,
  .preloader__scanline {
    display: none;
  }

  /* Border-Boxen explizit sichtbar machen */
  .btn,
  .service-card,
  .package,
  .project-card {
    border: 1px solid CanvasText;
  }

  /* Text-Shadows weg — verfälschen Kontrast */
  * {
    text-shadow: none !important;
    box-shadow: none !important;
  }
}


/* ════════════════════════════════════════════════════════════════
   7 · PRINT
   Falls jemand die Seite druckt — clean Content-Version.
   ════════════════════════════════════════════════════════════════ */

@media print {

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  /* Dekoratives weg */
  .preloader,
  .hud,
  .hud-info,
  .hero__bg,
  .showroom__synapses,
  .showroom__trails,
  .contact__reticle,
  .footer__nav {
    display: none !important;
  }

  /* Section-Padding runter, kein min-height */
  .hero,
  .section {
    min-height: auto;
    padding-block: 1.5rem;
    page-break-inside: avoid;
  }

  /* Showroom-Cards: kein Z-Tunnel, normaler Flow */
  .showroom__stage {
    position: static !important;
    height: auto !important;
    perspective: none !important;
  }

  .project-card {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  /* Typo print-friendly */
  h1, h2, h3 {
    color: black;
  }

  .hero__headline,
  .contact__email,
  .stat__num,
  .package__price {
    color: black;
    text-shadow: none;
  }

  /* Buttons als Outline drucken */
  .btn {
    border: 1px solid black;
    background: white !important;
    color: black !important;
    padding: 0.5rem 1rem;
  }

  /* URLs nach Links zeigen — nützlich auf Papier */
  a[href^="http"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  /* Section-Page-Breaks */
  .section {
    page-break-before: auto;
    page-break-after: auto;
  }
}
