/* ======================================================================
   Testfassung Startseite (/homenew), Aufbau nach business.apple.com:
   heller Hero mit Icon-Reihe, Abschnitte mit farbigem Anfangswort und
   Knopf rechts, Bento-Raster aus runden Karten, Schluss mit gestapelten
   Zeilen und Haken.
   ====================================================================== */
.pf-page-homenew {
  background: #f5f5f7;
  color: #1d1d1f;
}
.hn {
  overflow: hidden;
}

/* --- Hero --- */
.hn-hero {
  position: relative;
  padding: 120px 22px 96px;
  text-align: center;
  /* Der helle Fleck läuft vor dem oberen Rand aus: sonst steht unter der
     grauen Kopfleiste eine sichtbare Kante, auf schmalen Bildschirmen
     besonders deutlich. */
  background:
    radial-gradient(ellipse 70% 42% at 50% 50%, #ffffff 0%, rgba(255, 255, 255, 0) 100%),
    #f5f5f7;
}
.hn-marke {
  margin: 0;
  font-size: 24px;
  line-height: 1.17;
  font-weight: 600;
  letter-spacing: 0.009em;
}
.hn-hero-titel {
  margin: 12px 0 0;
  font-size: 64px;
  line-height: 1.0625;
  font-weight: 600;
  letter-spacing: -0.009em;
  text-wrap: balance;
}
.hn-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.hn-icons img {
  display: block;
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
@media (hover: hover) {
  .hn-icons a:hover img { transform: translateY(-6px) scale(1.04); }
}
.hn-hero-text {
  max-width: 640px;
  margin: 40px auto 0;
  font-size: 21px;
  line-height: 1.381;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: #6e6e73;
  text-wrap: balance;
}
.hn-hero-text strong {
  color: #1d1d1f;
  font-weight: 600;
}
.hn-hero .hn-knopf {
  margin-top: 32px;
}
.hn-knopf {
  font-size: 17px;
  line-height: 1.17648;
  letter-spacing: -0.022em;
  padding: 11px 21px;
}

/* --- Abschnitte --- */
/* Genau so breit wie der Inhalt der Kopfleiste: max. 1024 minus 2x22
   = 980px, auf dem Tablet 736 minus 2x22 = 692px. */
.hn-abschnitt {
  max-width: 1024px;
  margin: 0 auto;
  padding: 120px 22px 0;
  box-sizing: border-box;
}
@media only screen and (max-width: 1068px) {
  .hn-abschnitt { max-width: 736px; }
}
.hn-kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 48px;
  /* Kein Einzug: Titel und Knopf schließen bündig mit den Kartenkanten
     und damit mit dem Inhalt der Kopfleiste ab. */
  padding-inline: 0;
  box-sizing: border-box;
}
/* Höchstens 600px breit: der Titel bricht bewusst in drei kurze Zeilen
   und lässt rechts Luft für den Knopf. */
.hn-kopf-titel {
  max-width: 600px;
  margin: 0;
  font-size: 48px;
  line-height: 1.0834;
  font-weight: 600;
  letter-spacing: -0.003em;
  text-wrap: balance;
}
.hn-kopf .hn-knopf {
  flex: none;
}
.hn-farbe-blau { color: #0071e3; }
.hn-farbe-rot { color: #e30000; }

/* --- Bento --- */
.hn-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hn-karte {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  /* unten 88px: Platz für das runde Plus, damit es nie auf Bild oder
     Text liegt */
  padding: 40px 40px 88px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  color: #1d1d1f;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.hn-karte:hover {
  text-decoration: none;
}
/* Nur mit Maus: auf Touch-Geräten blieb die Vergrößerung nach dem
   Antippen hängen. */
@media (hover: hover) {
  .hn-karte:hover { transform: scale(1.008); }
}
.hn-breit-2 { grid-column: span 2; }
.hn-voll { grid-column: 1 / -1; }
.hn-augenbraue {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.2857;
  font-weight: 600;
  letter-spacing: -0.016em;
}
.hn-karte-titel {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1429;
  font-weight: 600;
  letter-spacing: 0.007em;
  text-wrap: balance;
}
.hn-karte-titel.hn-gross {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
}
.hn-karte-bild {
  margin-top: auto;
  padding-top: 32px;
}
.hn-karte-bild img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
.hn-blau {
  background: #0071e3;
  color: #fff;
}
.hn-blau .hn-augenbraue { color: rgba(255, 255, 255, 0.8); }
/* Vera-Karte: das iPhone ragt von unten in die Karte und läuft nach
   unten ins Blau aus, wie die VeraKit-Kachel der Startseite. */
.hn-karte-geraet {
  display: flex;
  justify-content: center;
  margin: 40px -40px -88px;
  flex: 1 1 0;
  min-height: 260px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 78%);
}
.hn-karte-geraet img {
  align-self: flex-start;
  width: 72%;
  max-width: 300px;
  height: auto;
}

/* Bildkarten: Foto füllt die Karte, Text liegt oben darüber. */
.hn-bild-karte {
  min-height: 680px;
}
.hn-voll-bild {
  position: absolute;
  inset: 0;
}
.hn-voll-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hn-dunkel {
  background: #000;
  color: #fff;
}
.hn-dunkel .hn-voll-bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 45%);
}

/* BEGA: das Claim-Bild ist eine blaue Fläche (#0051ff) mit dem Satz in
   der Mitte. Die Karte bekommt dasselbe Blau, der Text liegt weiß
   darüber. */
.hn-bega {
  min-height: clamp(440px, 40vw, 600px);
  background: #0051ff;
  color: #fff;
}
.hn-bega .hn-augenbraue { color: rgba(255, 255, 255, 0.8); }
.hn-bega .hn-plus { background: #fff; }
.hn-bega .hn-plus::before,
.hn-bega .hn-plus::after { background: #0051ff; }

/* Ganz zeigen statt beschneiden: auf hochkanten Karten fiele sonst der
   Satz links und rechts aus dem Bild. Der Rand ist dasselbe Blau. */
.hn-bega .hn-voll-bild img {
  object-fit: contain;
}
/* Auf dem Handy: Bild doppelt so breit wie die Karte und mittig, so
   füllt der Satz (42 % der Bildbreite) die Karte fast ganz aus. */
@media only screen and (max-width: 734px) {
  .hn-bega .hn-voll-bild {
    top: 140px;
  }
  .hn-bega .hn-voll-bild img {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 200%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
  }
}

/* Bär-Icon als Knopf: sieht aus wie die verlinkten Icons. */
.hn-icon-knopf {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
@media (hover: hover) {
  .hn-icon-knopf:hover img { transform: translateY(-6px) scale(1.04); }
}
.hn-icon-knopf:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 4px;
  border-radius: 22%;
}
.hn-fenster-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
}
#hn-berlin-fenster .vk-fenster-intro { margin-bottom: 40px; }

/* Kontaktkarte: drei große Wörter wie "Contact, Chat, Repair". */
.hn-karte-gross-text {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  margin-bottom: 24px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.003em;
}

/* Rundes Plus unten rechts, wie bei den Bento-Karten der Vorlage. */
.hn-plus {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1d1d1f;
}
.hn-plus::before,
.hn-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.hn-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.hn-blau .hn-plus,
.hn-dunkel .hn-plus {
  background: #fff;
}
.hn-blau .hn-plus::before,
.hn-blau .hn-plus::after,
.hn-dunkel .hn-plus::before,
.hn-dunkel .hn-plus::after {
  background: #1d1d1f;
}

/* --- Schluss --- */
/* Weiß statt Seitengrau: sonst geht der Schluss nahtlos in den
   gleichgrauen Footer über und wirkt wie ein Teil davon. */
.hn-schluss {
  margin-top: 96px;
  padding: 112px 22px 120px;
  text-align: center;
  background: #fff;
}
.hn-schluss-zeilen {
  margin: 16px 0 0;
  font-size: 48px;
  line-height: 1.0834;
  font-weight: 600;
  letter-spacing: -0.003em;
}
.hn-schluss-haken {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  font-size: 48px;
  line-height: 1.0834;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: #0071e3;
}
.hn-schluss-haken svg {
  width: 52px;
  height: 52px;
  flex: none;
}
.hn-schluss .hn-knopf {
  display: table;
  margin: 40px auto 0;
}

/* --- Tablet --- */
@media only screen and (max-width: 1068px) {
  .hn-hero-titel { font-size: 48px; }
  .hn-icons { gap: 16px; }
  .hn-icons img { width: 68px; height: 68px; }
  .hn-kopf-titel,
  .hn-schluss-zeilen,
  .hn-schluss-haken { font-size: 40px; }
  /* Zwei Spalten: die breiten Karten werden einspaltig, sonst bliebe
     neben VeraKit und Kontakt jeweils eine leere halbe Zeile. */
  .hn-bento { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hn-breit-2 { grid-column: span 1; }
  .hn-karte { min-height: 480px; padding: 32px 32px 80px; }
  .hn-karte-geraet { margin: 32px -32px -80px; }
  .hn-bild-karte { min-height: 520px; }
  .hn-karte-titel { font-size: 24px; }
  .hn-karte-titel.hn-gross { font-size: 32px; }
}

/* --- Handy --- */
@media only screen and (max-width: 734px) {
  .hn-hero { padding: 88px 22px 72px; }
  .hn-marke { font-size: 19px; }
  .hn-hero-titel { font-size: 36px; }
  /* Eine Reihe wie beim Vorbild statt eines 3x2-Blocks: sechs Icons
     à 46px passen auch auf 375px Breite. */
  .hn-icons { flex-wrap: nowrap; gap: 10px; margin-top: 28px; }
  .hn-icons img { width: 46px; height: 46px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)); }
  .hn-hero-text { font-size: 17px; }
  /* Handy: wie die Kopfleiste 87,5 % der Breite. */
  .hn-abschnitt { width: 87.5%; max-width: none; padding: 88px 0 0; }
  .hn-kopf { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  .hn-kopf-titel,
  .hn-schluss-zeilen,
  .hn-schluss-haken { font-size: 32px; }
  .hn-schluss-haken svg { width: 36px; height: 36px; }
  .hn-bento { grid-template-columns: 1fr; gap: 16px; }
  .hn-breit-2,
  .hn-voll { grid-column: auto; }
  .hn-karte { min-height: 0; padding: 28px 28px 80px; border-radius: 24px; }
  .hn-bega { min-height: 460px; }
  .hn-karte-geraet { margin: 32px -28px -80px; min-height: 300px; }
  .hn-bild-karte { min-height: 480px; }
  .hn-karte-titel,
  .hn-karte-titel.hn-gross { font-size: 24px; }
  .hn-karte-gross-text { margin-top: 40px; }
  .hn-schluss { margin-top: 88px; padding: 112px 22px 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .hn-icons img,
  .hn-karte { transition: none; }
}

/* Erster Bildschirm: der Hero füllt die Fensterhöhe, der Inhalt steht
   mittig, unten ein Pfeil als Hinweis, dass es weitergeht. */
.hn-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: calc(100svh - 44px);
}
.hn-runter {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  transition: opacity 0.4s ease, background 0.2s ease;
  animation: hn-runter-wippen 2.4s cubic-bezier(0.45, 0, 0.55, 1) 1.2s infinite;
}
.hn-runter:hover {
  background: rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.hn-runter svg {
  width: 22px;
  height: 22px;
}
.hn-runter-weg {
  opacity: 0;
  pointer-events: none;
}
@keyframes hn-runter-wippen {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(6px); }
}
#hn-apps {
  scroll-margin-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  .hn-runter { animation: none; }
}

/* Touch: kein grauer Tipp-Blitz auf den großen Kartenflächen. */
.hn-karte,
.hn-icon-knopf,
.hn-runter {
  -webkit-tap-highlight-color: transparent;
}

/* Handy: der erste Bildschirm wird nicht auf Fensterhöhe gestreckt. Der
   Inhalt ist dort kurz, die Fensterhöhe ließe nur Leere oben und unten.
   Ohne Leere braucht es auch keinen Pfeil. */
@media only screen and (max-width: 734px) {
  .hn-hero { min-height: 0; padding: 128px 22px 24px; }
  .hn-hero-titel { margin-top: 8px; }
  .hn-hero-text { margin-top: 28px; }
  .hn-hero .hn-knopf { margin-top: 24px; }
  .hn-runter { display: none; }
}

/* Einblenden auf dieser Seite: länger und mit weich auslaufender Kurve,
   etwas weiter von unten. Die Karten hatten eine eigene transition für
   den Hover, die die des Einblendens überschrieb; deshalb ploppten sie
   ohne Überblendung auf. Hier stehen beide in einer Regel. */
.pf-page-homenew .pf-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-page-homenew .pf-reveal.pf-reveal-in {
  opacity: 1;
  transform: none;
}
.pf-page-homenew .hn-karte.pf-reveal {
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Karten nebeneinander kommen leicht versetzt, nicht im Block. */
.pf-page-homenew .hn-bento > .pf-reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.pf-page-homenew .hn-bento > .pf-reveal:nth-child(3) {
  transition-delay: 0.24s;
}
/* Nach dem Einblenden wieder die kurze Hover-Bewegung, ohne Verzögerung. */
@media (hover: hover) {
  .pf-page-homenew .hn-karte.pf-reveal-in {
    transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .pf-page-homenew .hn-karte.pf-reveal-in:hover {
    transition-delay: 0s;
  }
}
/* Hero oben: die Teile kommen nacheinander. */
.pf-page-homenew .hn-hero > .pf-reveal:nth-child(2) { transition-delay: 0.08s; }
.pf-page-homenew .hn-hero > .pf-reveal:nth-child(3) { transition-delay: 0.16s; }
.pf-page-homenew .hn-hero > .pf-reveal:nth-child(4) { transition-delay: 0.24s; }
.pf-page-homenew .hn-hero > .pf-reveal:nth-child(5) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .pf-page-homenew .pf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Kontaktkarte: Symbol vor jedem großen Wort, wie "Contact, Chat,
   Repair" bei der Vorlage. */
.hn-karte-gross-text > span {
  display: flex;
  align-items: center;
  gap: 0.28em;
}
.hn-karte-gross-text svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  color: #6e6e73;
}

/* Handy nach dem Vorbild auf 402px Breite. */
@media only screen and (max-width: 734px) {
  /* Icons fast über die volle Breite, enger gesetzt. */
  .hn-icons { gap: 6px; }
  .hn-icons img { width: 50px; height: 50px; }
  /* BEGA: weniger leeres Blau, der Satz rückt näher an den Titel. */
  .hn-bega { min-height: 360px; }
  .hn-bega .hn-voll-bild { top: 110px; }
  /* Satz etwa 70 % der Kartenbreite, links und rechts Luft im Blau. */
  .hn-bega .hn-voll-bild img { width: 165%; top: 40%; }
}

/* Kontaktkarte: die großen Wörter richten sich nach der Kartenbreite,
   damit "Schreiben" samt Symbol nie über den Rand läuft (am Desktop ist
   die Karte nur ein Drittel breit). */
.hn-karte:has(.hn-karte-gross-text) {
  container-type: inline-size;
}
.hn-karte-gross-text,
.hn-karte .hn-karte-gross-text {
  font-size: min(44px, 15cqw);
}

/* Kontaktkarte mit dem Bild der Startseite (MacBook und iPhone). Der
   Bildgrund ist #f5f5f7; ein Hauch Helligkeit hebt ihn auf das Weiß der
   Karte, so geht das Bild randlos über. */
/* Unten in der Karte, knapp über dem Plus, und etwas über den Innenrand
   hinaus, damit die Geräte groß wirken. */
.hn-kontakt-bild {
  display: block;
  margin: auto -24px 0;
  padding-top: 24px;
}
/* Unterer Innenrand der Karte ist hier kleiner: Bild endet 12px über
   der Oberkante des Plus (Plus 36px hoch, 24px vom Rand). */
.hn-karte:has(.hn-kontakt-bild) {
  padding-bottom: 72px;
}
.hn-kontakt-bild img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.041);
}
