/*
  Marcel Arnold – Mobile-Optimierung v1
  Ergänzung zur bestehenden site.css, kein Ersatz.
  Nur Viewports bis 760px; Desktop-Design bleibt unverändert.
*/

/* Der Button existiert erst nach dem Laden von mobile-nav.js. */
.mobile-menu-toggle { display: none; }

@media (max-width: 760px) {
  :root { --page-pad: clamp(1rem, 5vw, 1.5rem); }

  /* Einzeiliger, ruhiger Header mit vollständiger Markenbezeichnung. */
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    min-height: 4.25rem;
    padding: 0.6rem var(--page-pad);
    flex-wrap: nowrap;
  }
  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    gap: 0.7rem;
    font-size: 0.78rem;
  }
  .site-header .brand-mark {
    flex: none;
    width: 2.75rem;
    min-width: 2.75rem;
    border-radius: 3px;
  }
  .site-header .brand-name {
    display: inline;
    min-width: 0;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-header .header-tools {
    grid-column: 2;
    grid-row: 1;
    gap: 0;
  }
  .site-header .local-time,
  .site-header .command-button { display: none; }

  .site-header .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .site-header .mobile-menu-toggle[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
  }
  .mobile-menu-toggle .mobile-menu-icon { font-size: 1.25rem; line-height: 1; }

  /* Ohne JavaScript bleibt die bisherige, scrollbar bedienbare Nav erhalten. */
  .site-header .home-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    min-width: 0;
    width: 100%;
  }
  /* Mit JavaScript wird die Nav zum bedienbaren Dropdown statt horizontalem Scrollbalken. */
  html.has-mobile-nav .site-header .home-nav {
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    gap: 0.3rem;
    width: auto;
    max-height: calc(100svh - 4.25rem);
    margin: 0;
    padding: 0.8rem var(--page-pad) 1.1rem;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #0b0e0b;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.6);
  }
  html.has-mobile-nav .site-header[data-mobile-open] .home-nav { display: grid; }
  html.has-mobile-nav .site-header .home-nav a {
    display: flex;
    align-items: center;
    min-height: 3.15rem;
    padding: 0.85rem 0.9rem;
    border-radius: 3px;
    font-size: 0.85rem;
    white-space: normal;
  }
  html.has-mobile-nav .site-header .home-nav a[aria-current="page"] {
    border-color: rgba(var(--accent-rgb), 0.4);
    color: var(--accent);
  }

  /* Hero: Stil bewahren, erste echte Aktion deutlich früher sichtbar machen. */
  .hero {
    min-height: 0;
    gap: 0;
    padding-top: 1.6rem;
    padding-bottom: 2.5rem;
  }
  /* Die Originalregel blendete den einzigen Kicker-Span versehentlich aus. */
  .hero-kicker span:last-child { display: inline; }
  .hero-kicker { font-size: 0.67rem; letter-spacing: 0.07em; line-height: 1.5; }
  .hero-title {
    max-width: 100%;
    margin: 1.1rem 0 1.8rem;
    font-size: clamp(2.55rem, 11.5vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.94;
  }
  .hero-title .title-line { white-space: normal; }
  .hero-title .title-line:nth-child(2) { padding-left: 0; }
  .hero-footer { display: block; margin-top: 0; }
  .hero-message { gap: 0.85rem; }
  .hero-role {
    margin: 0;
    font-size: 0.66rem;
    letter-spacing: 0.065em;
    line-height: 1.55;
  }
  /* Auf Mobile ist diese zweite Headline redundant zur H1. */
  .hero-statement { display: none; }
  .hero-value {
    max-width: 36ch;
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.48;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    margin-top: 0.5rem;
  }
  .hero-action {
    width: 100%;
    min-width: 0;
    min-height: 3.1rem;
    padding: 0.86rem 1rem;
    font-size: 0.73rem;
    line-height: 1.35;
  }
  .availability { margin-top: 0.25rem; font-size: 0.64rem; line-height: 1.5; }
  .scroll-cue { display: none; }

  /* Inhalte: kürzere Wege bei unverändertem Inhaltsumfang. */
  .statement-section,
  .offer-section,
  .latest-section,
  .capabilities-compact,
  .work-section,
  .identity-section { padding-block: clamp(2.75rem, 11vw, 4.25rem); }
  /* spaetere Desktop-Regeln der Original-CSS duerfen Grid-Spalten nicht wieder aktivieren */
  .statement-layout,
  .offer-intro,
  .work-heading { grid-template-columns: minmax(0, 1fr); }
  .statement-copy,
  .offer-intro,
  .work-heading { min-width: 0; }
  .statement-layout { gap: 1.4rem; }
  .statement-layout h2 { font-size: clamp(2.25rem, 9.5vw, 3.8rem); line-height: 1; }
  .statement-copy { font-size: 1rem; line-height: 1.55; }
  .statement-copy p + p { margin-top: 0.8rem; }
  .offer-intro { gap: 1rem; margin-bottom: 1.75rem; }
  .offer-intro h2 { font-size: clamp(2.2rem, 9vw, 3.5rem); line-height: 1; }
  .offer-intro > p:last-child { font-size: 0.95rem; line-height: 1.5; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card,
  .offer-card-featured {
    grid-column: 1;
    min-height: 0;
    padding: 1.35rem 1.15rem;
  }
  .offer-card h3,
  .offer-card:not(.offer-card-featured) h3,
  .offer-card-featured h3 {
    max-width: none;
    margin: 1.15rem 0 0.75rem;
    font-size: clamp(1.85rem, 8vw, 2.7rem);
    line-height: 1.03;
  }
  .offer-card p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
  .editorial-hub .offer-card strong { margin-top: 0.95rem; padding-top: 0; }
  .editorial-hub .offer-card::after { right: 0.75rem; bottom: 0.75rem; font-size: 4rem; }

  .latest-heading h2 { font-size: clamp(2.3rem, 9vw, 3.6rem); }
  .latest-card { min-height: 0; padding: 1.4rem 1.15rem; }
  .latest-card h3 { margin: 1.3rem 0 0.8rem; font-size: clamp(1.8rem, 7.8vw, 2.4rem); }
  .latest-card p { line-height: 1.5; }
  .capabilities-heading h2 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .capabilities-heading { margin-bottom: 2rem; }
  .capabilities-intro { margin-top: 1.2rem; }
  .capabilities-compact .capability-card,
  .capabilities-compact .capability-card:last-child { padding: 1.25rem 0.65rem; }
  .work-heading h2 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .identity-actions { max-width: none; }
  .contact-link { min-height: 7rem; }
  section[id] { scroll-margin-top: 5.5rem; }
}

/* Noch engere Geräte: klar lesbar bleiben, statt seitlich abzuschneiden. */
@media (max-width: 359px) {
  .site-header .brand-name { font-size: 0.7rem; }
  .hero-title { font-size: clamp(2.25rem, 11.2vw, 2.6rem); }
}
