/* ============================================================================
   HANDY-APP IM APPLE-AUSSEHEN                                    10.09.2026
   ----------------------------------------------------------------------------
   Andreas, 10.09.2026: "Apple Design aber Farben bleiben."

   Darum ändert diese Datei NUR DIE FORM, nie den Farbton:
   Rundungen, Abstände, Schriftgrößen, Hairlines, weiche Schatten, Blur in den
   Leisten, gruppierte Listen, Segmented Control. Jede Farbe kommt weiterhin
   aus den Variablen der App (--grund, --flaeche, --linie, --tinte, --plus …).
   Es steht KEIN einziger neuer Farbwert in dieser Datei außer Schwarz/Weiß
   mit Deckkraft für Schatten und Glanzkanten - deshalb bleiben auch alle
   Kontraste so, wie sie gemessen wurden.

   Was "Apple" hier konkret heißt (iOS-Formensprache):
     - Große Titel links oben (Large Title), eng gesetzt
     - Inhalte in Karten mit weichen Ecken auf ruhigem Grund
     - Trennlinien als Haarlinien, keine Kästen um alles
     - Leisten oben und unten mit Blur, dünne Trennkante
     - Reiter als Segmented Control (Pille im Rahmen)
     - Blätter (Sheets) mit großem Radius und Griff-Strich
     - Knöpfe hoch, fett, klar gerundet

   Rückweg: Diese Datei ist eine SCHICHT über <html class="apple">. Ohne die
   Klasse sieht die App aus wie vorher - der Schalter sitzt in
   "Konto & Einstellungen". Es wurde kein HTML umgebaut (Regel: nichts
   ersetzen ohne Nachweis, alte Betriebsart als Schalter behalten).
============================================================================ */

/* ---------- Grundlage: Schrift und Laufweite ---------- */
html.apple body{
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  letter-spacing:-.01em;
}

/* ---------- Kopfleiste: Blur statt Fläche, Haarlinie ---------- */
html.apple .kopf{
  background:color-mix(in srgb, var(--flaeche) 82%, transparent);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:.5px solid color-mix(in srgb, var(--linie) 90%, transparent);
  box-shadow:none;
}
/* Großer Titel wie in iOS - links, fett, eng. */
html.apple .kopf h1, html.apple #kTitel{
  font-size:26px; font-weight:800; letter-spacing:-.02em; line-height:1.15;
}

/* ---------- Karten: weiche Ecken, Haarlinie, sanfter Schatten ---------- */
html.apple .karte{
  border-radius:16px;
  border:.5px solid color-mix(in srgb, var(--linie) 85%, transparent);
  box-shadow:0 1px 2px rgba(0,0,0,.28), 0 8px 24px rgba(0,0,0,.14);
  padding:15px 16px;
}
html.apple .karte .titel{ font-size:17px; font-weight:700; letter-spacing:-.01em; }
html.apple .karte .unter{ font-size:15px; line-height:1.45; }
/* Innen liegende Trennlinien als Haarlinie. */
html.apple .karte .tippHinweis,
html.apple .karte .reihe{ border-top-color:color-mix(in srgb, var(--linie) 70%, transparent); }

/* ---------- Abschnittsüberschriften: groß und ruhig ---------- */
html.apple .abschnitt h2{ font-size:22px; font-weight:800; letter-spacing:-.02em; }
html.apple h2{ letter-spacing:-.01em; }
html.apple .abschnitt .klein{ border-radius:50%; width:38px; height:38px; }

/* ---------- Knöpfe: hoch, fett, klar gerundet ---------- */
html.apple .knopf{
  border-radius:14px; min-height:50px; font-size:17px; font-weight:600;
  letter-spacing:-.01em; box-shadow:none;
}
html.apple .knopf:active{ transform:scale(.98); }
html.apple .reihe a, html.apple .reihe button{
  border-radius:11px; font-weight:600; font-size:15px;
  border:.5px solid color-mix(in srgb, var(--linie) 85%, transparent);
}

/* ---------- Reiter als Segmented Control ---------- */
html.apple .reiter{
  margin:6px 0 14px; padding:3px; border-radius:11px;
  background:color-mix(in srgb, var(--linie) 45%, transparent);
  border:none;
}
html.apple .reiter button{
  border-radius:9px; padding:8px 4px; font-size:14px; font-weight:600;
  border-bottom:none !important; color:var(--tinte-soft);
}
html.apple .reiter button.an{
  background:var(--flaeche2); color:var(--tinte);
  box-shadow:0 1px 3px rgba(0,0,0,.3);
}
html.apple .reiter button .sym{ font-size:16px; }

/* ---------- Eingabefelder: iOS-Feld ---------- */
html.apple input, html.apple select, html.apple textarea{
  border-radius:11px; font-size:17px; padding:12px 13px;
  border:.5px solid color-mix(in srgb, var(--linie) 90%, transparent);
}
html.apple label{ font-size:14px; font-weight:600; letter-spacing:-.005em; }

/* ---------- Blatt (Sheet): großer Radius, Griff-Strich ---------- */
html.apple #blatt{
  border-radius:22px 22px 0 0;
  box-shadow:0 -8px 40px rgba(0,0,0,.5);
  border-top:.5px solid color-mix(in srgb, var(--linie) 80%, transparent);
}
html.apple #blatt::before{
  content:''; display:block; width:38px; height:5px; border-radius:3px;
  background:color-mix(in srgb, var(--tinte-soft) 55%, transparent);
  margin:9px auto 4px;
}
html.apple #blatt h3{ font-size:20px; font-weight:800; letter-spacing:-.02em; }

/* ---------- Fußleiste: Blur, Haarlinie, ruhige Symbole ---------- */
html.apple .fuss{
  background:color-mix(in srgb, var(--flaeche) 80%, transparent);
  backdrop-filter:saturate(180%) blur(22px);
  -webkit-backdrop-filter:saturate(180%) blur(22px);
  border-top:.5px solid color-mix(in srgb, var(--linie) 90%, transparent);
}
html.apple .fuss button{ font-size:11px; font-weight:600; letter-spacing:-.005em; }
html.apple .fuss button .sym{ border-radius:12px; }

/* ---------- Plus-Knopf: runder, weicher Schatten ---------- */
html.apple #plus{
  box-shadow:0 6px 20px rgba(0,0,0,.42);
}
html.apple #plus:active{ transform:scale(.94); }
html.apple #plusListe button{
  border-radius:13px; font-size:16px; font-weight:600;
  border:.5px solid color-mix(in srgb, var(--linie) 85%, transparent);
}

/* ---------- Listenzeilen (Team, Abwesenheit) als iOS-Zeile ---------- */
html.apple .teamZeile{ border-radius:12px; padding:11px 13px; font-size:16px; }
html.apple .tabelle td{ font-size:16px; }

/* ---------- Suchfeld ---------- */
html.apple .suchfeld, html.apple input[type=search]{
  border-radius:11px; font-size:17px;
}
/* 17.09.2026 (Andreas, Bild): Die Regel "html.apple input{padding:12px 13px}" oben
   schlug den linken Abstand von 44 px aus handy.html - getippte Buchstaben lagen
   unter der Lupe. Hier gilt wieder: Platz für die Lupe. */
html.apple .suchfeld input{ padding-left:44px; }

/* ---------- Leere Zustände: freundlicher, luftiger ---------- */
html.apple .leer{ font-size:16px; line-height:1.5; }

/* ---------- Bilder: gleiche Rundung wie Karten ---------- */
html.apple .bilder a, html.apple .bilder img{ border-radius:13px; }

/* Weniger Bewegung, wenn das Gerät es so wünscht. */
@media (prefers-reduced-motion: reduce){
  html.apple .knopf:active, html.apple #plus:active{ transform:none; }
}
