/* reneturrek.art – Feinschliff fuer iPhone / iPhone Duo / Tablets (Stand 05.11.2026)
   Ergaenzt das bestehende Tailwind-CSS. Desktop (>= 1024 px) bleibt praktisch unveraendert. */

/* ---------- 1. Kein seitliches Verrutschen der Seite ---------- */
#root > [data-loc="client/src/pages/Home.tsx:704"] { overflow-x: clip; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
.grid > * { min-width: 0; }

/* Sprungziele: Ueberschrift nicht unter den festen Bedienknoepfen */
[id] { scroll-margin-top: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.reduced-motion { scroll-behavior: auto; }

/* ---------- 2. Startbildschirm: passt in jede Bildschirmhoehe ---------- */
[data-loc="client/src/pages/Home.tsx:720"] { min-height: 100vh; min-height: 100svh; }
@media (max-width: 47.99rem), (max-height: 47.5rem) {
  [data-loc="client/src/pages/Home.tsx:742"] { padding-top: clamp(4.75rem, 13svh, 13rem); padding-bottom: 2.5rem; }
  [data-loc="client/src/pages/Home.tsx:744"],
  [data-loc="client/src/pages/Home.tsx:753"] { margin-bottom: clamp(1.25rem, 4svh, 3rem); }
  [data-loc="client/src/pages/Home.tsx:745"] { max-width: min(100%, 48rem, calc(42svh * 1.334)); }
}

/* ---------- 3. Navigation ---------- */
.aos-nav-btn { max-width: calc(100vw - 9.5rem); }
.aos-nav-cur {
  display: inline-block; max-width: min(10rem, calc(100vw - 17rem)); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding-left: .625rem; margin-left: .125rem; border-left: 1px solid rgba(255,255,255,.22);
  color: #d1d5db; font-size: .8125rem; font-weight: 500; line-height: 1.25rem;
}
.aos-nav-panel {
  position: absolute; top: 100%; left: 0; margin-top: .5rem; width: min(18rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6.5rem); max-height: calc(100svh - 6.5rem); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; background: rgba(0,0,0,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.6);
  animation: aosNavIn .16s ease-out;
}
@keyframes aosNavIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
html.reduced-motion .aos-nav-panel { animation: none; }
@media (prefers-reduced-motion: reduce) { .aos-nav-panel { animation: none; } }
.aos-nav-ul { display: grid; grid-template-columns: minmax(0, 1fr); padding: .375rem; margin: 0; list-style: none; }
@media (min-width: 40rem) {
  .aos-nav-panel { width: 30rem; }
  .aos-nav-ul { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); grid-auto-flow: column; column-gap: .25rem; }
}
.aos-nav-item {
  display: flex; align-items: center; gap: .625rem; width: 100%; min-height: 44px; padding: .5rem 1rem; border: 0; border-radius: .75rem;
  background: none; color: #fff; text-align: left; font-size: .875rem; font-weight: 500; letter-spacing: .025em; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.aos-nav-item::before { content: ""; flex: none; width: .375rem; height: .375rem; border-radius: 999px; background: rgba(255,255,255,.18); transition: background-color .15s; }
@media (hover: hover) { .aos-nav-item:hover { background: rgba(255,255,255,.1); } }
.aos-nav-item.is-active { color: #FF6B35; background: rgba(255,107,53,.1); }
.aos-nav-item.is-active::before { background: #FF6B35; }
.aos-nav-item:focus-visible, .aos-nav-btn:focus-visible, .aos-more:focus-visible { outline: 2px solid #00D9FF; outline-offset: 2px; }

/* ---------- 4. "Weiterlesen" bei langen Beschreibungen (Handy, Tablet, aufgeklapptes iPhone Duo) ---------- */
@media (max-width: 63.99rem) {
  .aos-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
}
.aos-more {
  display: flex; width: fit-content; align-items: center; gap: .375rem; min-height: 44px; margin-top: .25rem; padding: 0;
  border: 0; background: none; color: #00D9FF; font-size: .9375rem; font-weight: 700; letter-spacing: .02em; cursor: pointer;
}
.aos-more svg { transition: transform .2s; }
.aos-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- 5. Handy (< 768 px): kompaktere Abstaende und Ueberschriften, Galerien zweispaltig ---------- */
@media (max-width: 47.99rem), (max-width: 63.99rem) and (max-height: 47.5rem) {
  .py-32 { padding-block: 4.5rem; }
  .py-24 { padding-block: 3.5rem; }
  .mb-24 { margin-bottom: 2.75rem; }
  .mb-20 { margin-bottom: 2.5rem; }
  .mb-16 { margin-bottom: 2.5rem; }
  .mt-32 { margin-top: 4.5rem; }
  .mt-24 { margin-top: 3.5rem; }
  .mt-16 { margin-top: 2.5rem; }
  .gap-16 { gap: 2rem; }
  .gap-12 { gap: 2.25rem; }
  :where(.space-y-32 > :not(:last-child)) { margin-block-end: 4.5rem; }
  :where(.space-y-24 > :not(:last-child)) { margin-block-end: 4rem; }
}
@media (max-width: 47.99rem) {
  h2.text-8xl { font-size: clamp(2.75rem, 14.5vw, 6rem); line-height: 1; }
  h2.text-7xl { font-size: clamp(2.5rem, 12vw, 4.5rem); line-height: 1.02; }
  h3.text-5xl { font-size: clamp(2rem, 10.5vw, 3rem); }
  .text-4xl.italic { font-size: 1.625rem; line-height: 1.3; }
  .text-3xl.italic { font-size: 1.5rem; line-height: 1.35; }

  /* Medienecho, Luxury Bags, Legendary Collabs: zwei Spalten statt eine */
  [data-loc="client/src/pages/Home.tsx:2521"],
  [data-loc="client/src/pages/Home.tsx:1528"],
  [data-loc="client/src/pages/Home.tsx:2096"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  [data-loc="client/src/pages/Home.tsx:2096"] h4 { font-size: 1.0625rem; line-height: 1.2; }
  [data-loc="client/src/pages/Home.tsx:2096"] .p-4 { padding: .625rem; }
  /* Bekannt aus: Logos enger */
  [data-loc="client/src/pages/Home.tsx:2375"] { gap: .5rem 1rem; }
  [data-loc="client/src/pages/Home.tsx:2375"] > .p-6 { padding: .75rem; }

  /* Feste Bedienknoepfe buendig mit dem Seitenrand */
  [data-loc="client/src/components/NavigationMenu.tsx:72"] { top: max(1rem, env(safe-area-inset-top)); left: max(1rem, env(safe-area-inset-left)); }
  [data-loc="client/src/components/LanguageSwitcher.tsx:7"] { top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); }
  [data-loc="client/src/components/AccessibilityMenu.tsx:11"] { bottom: max(1rem, calc(env(safe-area-inset-bottom) + .5rem)); right: max(1rem, env(safe-area-inset-right)); }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  h2.md\:text-9xl { font-size: 6rem; line-height: 1; }
  h2.md\:text-8xl { font-size: 4.5rem; line-height: 1.02; }
  h3.md\:text-6xl { font-size: 3rem; }
}

/* Footer: Logo und Copyright auf schmalen Bildschirmen untereinander */
@media (max-width: 39.99rem) {
  [data-loc="client/src/pages/Home.tsx:2688"] { flex-direction: column; gap: 1rem; }
  [data-loc="client/src/pages/Home.tsx:2695"] { white-space: normal; text-align: center; }
}
/* Letzte Zeile nicht unter dem runden Barrierefreiheits-Knopf */
@media (max-width: 63.99rem) {
  [data-loc="client/src/pages/Home.tsx:2688"] { padding-bottom: 4.5rem; }
}

/* ---------- 6. Touch: Tippflaechen mindestens 44 px (Apple-Richtlinie) ---------- */
@media (pointer: coarse) {
  [data-loc="client/src/components/NavigationMenu.tsx:74"] { min-height: 48px; }
  [data-loc^="client/src/components/LanguageSwitcher.tsx:"] > button { min-height: 40px; min-width: 44px; }
  [data-loc="client/src/pages/Home.tsx:764"], [data-loc="client/src/pages/Home.tsx:774"] { display: inline-flex; align-items: center; min-height: 44px; }
  [data-loc="client/src/pages/Home.tsx:1775"] { min-height: 44px; }
  [data-loc="client/src/pages/Home.tsx:2647"] { gap: .25rem; margin-left: -10px; }
  [data-loc="client/src/pages/Home.tsx:2647"] > a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  [data-loc="client/src/pages/Home.tsx:2666"], [data-loc="client/src/pages/Home.tsx:2668"] { display: inline-flex; align-items: center; min-height: 44px; }
}
