/* nailartbypetra.de
   Optisch 1:1 die alte Elementor-Seite, Werte gemessen am 06.10.2026
   (alt-stand/stilmasse.md). Umbrueche wie bei Elementor: Tablet bis 1024 px,
   Handy bis 767 px. */

/* Schriften: Die alte Seite hatte Marcellus und Sarabun eingestellt, aber nie
   geladen. Seit dem Feinschliff (24.10.2026, Lukas) wirklich geladen, selbst
   gehostet, kein fremder Dienst. */
@font-face { font-family: "Marcellus"; src: url("../schriften/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sarabun"; src: url("../schriften/sarabun-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sarabun"; src: url("../schriften/sarabun-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Sarabun"; src: url("../schriften/sarabun-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../schriften/roboto-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* 07.10.2026 auf Lukas' Zuruf leicht abgedunkelt, Optik bleibt (logbuch.md):
     Rosa #d8599d -> 7 % dunkler (weiss darauf 4,0:1 statt 3,6:1),
     Pink #f65fff -> 10 % dunkler (3:1 fuer grosse Schrift),
     Grau #7a7a7a -> 3 % dunkler (4,5:1). */
  --rosa: #d44a93;
  --pink: #f43eff;
  --creme: #fcefe3;
  --grau: #767676;
  --dunkel: #33373d;
  --weiss: #ffffff;
  --innen: 1140px;
  --rand: 0px;
  --text: 16px;
  --zeile: 1.65;
  --h-gross: 51.2px;
  --h-band: 35px;
  --h-karte: 24px;
  --h-fuss: 20.8px;
  /* Bewegung (Emil Kowalski): kraeftiges ease-out fuer Antworten auf die
     Besucherin, ease-in-out fuer Bewegung auf der Flaeche. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::selection { background: var(--rosa); color: var(--weiss); }
a, button { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--grau);
  font-family: "Sarabun", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-size: var(--text);
  line-height: var(--zeile);
}
/* Ausgeblendet heisst ausgeblendet, auch wenn eine Klasse display setzt
   (sonst blieb das Formular nach dem Absenden stehen, 07.10.2026). */
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Marcellus", sans-serif; font-weight: 400; margin: 0; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.sprung { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--weiss); color: var(--dunkel); padding: 12px 20px; }
.sprung:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--dunkel); outline-offset: 3px; }

.innen { width: 100%; max-width: var(--innen); margin: 0 auto; }

/* ---------- Knoepfe ---------- */
.knopf {
  display: inline-block;
  font-family: "Sarabun", sans-serif;
  font-size: 16px;
  line-height: 1;
  color: var(--weiss);
  background: var(--rosa);
  border: 1px solid var(--rosa);
  border-radius: 25px;
  padding: 15px 30px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { background: var(--weiss); color: var(--rosa); }
}
.knopf:active { transform: scale(0.97); }
.knopf:disabled { opacity: .65; cursor: progress; transform: none; }
.knopf--hell { border-color: var(--weiss); }
.knopf--breit { display: block; width: 100%; }

/* ---------- Kopf ---------- */
.kopf { position: relative; z-index: 10; }
.kopf .innen {
  display: grid;
  grid-template-columns: 336px 1fr 336px;
  gap: 10px;
  align-items: center;
  padding: 20px 0 10px;
  min-height: 159px;
}
.kopf__logo img { width: 269px; height: auto; }
.menue { display: flex; justify-content: center; }
.menue ul { display: flex; list-style: none; margin: 0; padding: 0; }
.menue a {
  position: relative;
  display: block;
  padding: 13px 20px;
  color: var(--pink);
  text-decoration: none;
  line-height: 20px;
}
.menue a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--rosa);
  opacity: 0;
  transform: scaleX(.6);
  transition: opacity .2s ease, transform .25s var(--ease-out);
}
.menue a[aria-current="page"]::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .menue a:hover::after { opacity: 1; transform: none; }
}
.kopf__knopf { display: block; width: 100%; }
.menue__schalter { display: none; }

/* ---------- Start ---------- */
.start { padding: 150px 0; }
.start .innen { display: flex; align-items: stretch; gap: 10px; }
.start__text { flex: 0 0 584px; display: flex; flex-direction: column; justify-content: center; padding: 0 80px 50px 0; }
.start h1 { font-size: clamp(32px, 8vw, 43px); line-height: 1.25; color: var(--pink); margin-bottom: 18px; }
.start__text > p:first-of-type { margin-bottom: 28px; max-width: 46ch; }
.start__bild { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.start__bild img { width: 100%; border-radius: 20px; }

/* ---------- Baender (rosa) ---------- */
.band { background: var(--rosa); color: var(--weiss); padding: 100px 0; }
.bereit .innen { display: flex; gap: 10px; }
.bereit__titel { flex: 0 0 558px; padding-right: 30px; }
.bereit h2 { font-size: var(--h-gross); line-height: 1.3; text-align: right; color: var(--weiss); }
.bereit__text { flex: 1; padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .6); }
.bereit__text p { margin-bottom: 18px; padding-right: 130px; }

/* ---------- Leistungen ---------- */
.leistungen { padding: 100px 0 50px; }
.leistungen h2 { font-size: var(--h-gross); line-height: 1.3; color: var(--rosa); text-align: center; margin-bottom: 49px; }
.karten { display: grid; grid-template-columns: repeat(3, 343.4px); justify-content: space-between; gap: 10px; margin: 0; padding: 0; list-style: none; }
.karte { padding: 30px 20px; text-align: center; }
.karte--schatten { border-radius: 10px; box-shadow: 0 12px 17px 7px rgba(230, 230, 230, .21); }
.karte img { width: 61px; height: 61px; margin: 0 auto; }
.karte h3 { font-size: var(--h-karte); line-height: 1.3; color: var(--pink); margin: 12px 0 8px; }
.leistungen .knopf--breit { margin-bottom: 50px; }

/* ---------- Kundenstimmen und Galerie ---------- */
.stimmen { color: var(--creme); }
.stimmen h2 { font-size: var(--h-band); line-height: 1.3; text-align: center; color: var(--creme); padding: 10px 10px 0; }
.karussell { position: relative; padding: 11px 28px; margin: 0 10px 30px; }
.karussell__fenster { overflow: hidden; }
.karussell { touch-action: pan-y; }
.karussell__band { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; transition: transform .6s var(--ease-in-out); }
.karussell__band.ohne-uebergang { transition: none; }
.stimme { flex: 0 0 calc((100% - 10px) / 2); text-align: center; padding: 32px 0; margin: 0; }
.stimme figure { margin: 0; }
.stimme blockquote { margin: 0; font-size: 20.8px; line-height: 1.5; font-style: italic; }
.stimme figcaption { margin-top: 20px; font-weight: 700; font-size: 16px; }
.karussell__pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 12px;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: rgba(237, 237, 237, .9);
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .karussell__pfeil:hover { background: rgba(255, 255, 255, .14); }
}
.karussell__pfeil:active { transform: translateY(-50%) scale(0.92); }
.karussell__pfeil svg { width: 20px; height: 20px; fill: currentColor; display: block; margin: 0 auto; }
.karussell__pfeil--zurueck { left: -6px; }
.karussell__pfeil--vor { right: -6px; }

.galerie-titel { margin: 24px 0 12px; }
.galerie { display: flex; justify-content: center; gap: 10px; padding: 10px; margin: 0 10px 10px; list-style: none; }
.galerie li { flex: 1 1 0; }
.galerie a { display: block; overflow: hidden; border-radius: 6px; cursor: zoom-in; }
.galerie img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .galerie a:hover img { transform: scale(1.04); }
}

/* Grossansicht der Galerie: blendet kurz auf statt hart zu springen. */
.lichtbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lichtbox::backdrop { background: rgba(0, 0, 0, .87); }
.lichtbox[open] { animation: lichtbox-auf .24s var(--ease-out); }
.lichtbox[open]::backdrop { animation: schleier-auf .24s ease; }
@keyframes lichtbox-auf { from { opacity: 0; transform: scale(.96); } }
@keyframes schleier-auf { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lichtbox[open] { animation-name: schleier-auf; }
  .karussell__band, .galerie img { transition: none; }
}
.lichtbox img { max-width: 92vw; max-height: 86vh; width: auto; margin: 0 auto; }
.lichtbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* ---------- Ueber Petra ---------- */
.petra { padding: 100px 0; }
.petra .innen { display: flex; gap: 10px; }
.petra__bild { flex: 0 0 598px; display: flex; align-items: center; justify-content: center; }
.petra__bild img { width: 283px; height: 283px; object-fit: cover; }
.petra__text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.petra h2 { font-size: var(--h-gross); line-height: 1.3; color: var(--rosa); }
.petra__text p { margin-bottom: 0; }
.petra .knopf { align-self: flex-start; margin: 10px; }

/* ---------- Kontakt ---------- */
.seitenkopf {
  position: relative;
  padding: 170px 0 100px;
  background: url("../bilder/logo.svg?v=1") center / 67% auto no-repeat;
  text-align: center;
}
.seitenkopf::before { content: ""; position: absolute; inset: 0; background: var(--rosa); opacity: .74; }
.seitenkopf h1 { position: relative; font-size: 64px; line-height: 1.4; color: var(--weiss); }
.kontakt { padding: 50px 0 100px; }
.kontakt .innen { padding: 10px; }
.kontakt h2 { font-size: var(--h-band); line-height: 1.3; color: var(--pink); margin-bottom: 12px; }
.formular { display: grid; gap: 30px; margin-top: 14px; }
.formular label { display: block; font-size: 14px; font-weight: 500; color: #1e293b; margin-bottom: 4px; line-height: 1.3; }
.formular input, .formular textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  color: #1f2124;
  background: var(--weiss);
  border: 1px solid #69727d;
  border-radius: 4px;
  padding: 11px 16px;
  caret-color: var(--rosa);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(212, 74, 147, .18); }
/* 16 px: darunter zoomt das iPhone beim Antippen ins Feld und nicht zurueck. */
.formular textarea { min-height: 96px; border-radius: 3px; padding: 8px 16px; font-size: 16px; line-height: 1.5; resize: vertical; }
.formular .knopf { width: 100%; font-size: 16px; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis-klein { font-size: 13px; line-height: 1.5; }
.hinweis-klein a { color: var(--rosa); }
.formular-meldung { margin-top: 30px; padding: 20px 24px; border-left: 4px solid var(--rosa); background: #fdf3f8; color: #4b4646; }
.formular-meldung a { color: var(--rosa); }
.formular-meldung:focus { outline: none; }
.rechtstext .knopf { color: var(--weiss); margin: 0 6px 8px 0; }
.rechtstext .knopf:hover { color: var(--rosa); }

/* ---------- Rechtstexte ---------- */
/* Wie die alte Seite: Text direkt unter dem Kopf, volle Innenbreite,
   Ueberschriften Weinrot, Links schwarz. */
.rechtstext { padding: 10px 10px 20px; }
.rechtstext h1 { font-size: 24px; line-height: 1.3; color: #5e0826; }
.rechtstext h2 { font-size: 20.8px; line-height: 1.2; color: #5e0826; }
.rechtstext p { margin: 0 0 28px; }
.rechtstext a { color: #000; }

/* ---------- Fuss ---------- */
.fuss { background: var(--rosa); color: var(--weiss); padding: 100px 0 50px; }
.fuss__oben { display: flex; gap: 10px; padding: 10px; }
.fuss__logo { flex: 0 0 623px; }
.fuss__logo img { width: 411px; }
.fuss__luecke { flex: 0 0 140px; }
.fuss__spalte h2 { font-size: var(--h-fuss); line-height: 1.3; color: var(--weiss); }
.fuss__spalte ul { list-style: none; margin: 0; padding: 0; }
.fuss__spalte a { color: var(--weiss); text-decoration: none; }
.fuss__spalte a:hover { text-decoration: underline; }
.fuss__spalte:first-of-type { flex: 0 0 130px; }
.fuss__copy { font-family: "Roboto", sans-serif; font-size: 16px; line-height: 1.3; text-align: center; margin: 0; padding: 25px 0; }

/* =================== Tablet (bis 1024) =================== */
@media (max-width: 1024px) {
  /* Fliesstext 15 statt 12,8 px: am Handy sonst kaum lesbar. */
  :root { --text: 15px; --h-gross: 33.56px; --h-karte: 18.97px; --h-fuss: 16.6px; }
  .innen { padding-left: 30px; padding-right: 30px; }
  .kopf .innen { grid-template-columns: 242px 1fr 242px; min-height: 94px; padding-top: 20px; padding-bottom: 10px; }
  .kopf__logo img { width: 133px; }
  .menue { position: relative; }
  .menue__schalter {
    display: flex; align-items: center; justify-content: center;
    width: 33px; height: 33px; padding: 0; border: 0; border-radius: 3px;
    background: rgba(0, 0, 0, .05); color: var(--dunkel); cursor: pointer;
  }
  .menue__schalter svg { width: 22px; height: 22px; fill: currentColor; }
  .menue__schalter .zu { display: none; }
  .menue--offen .menue__schalter .auf { display: none; }
  .menue--offen .menue__schalter .zu { display: block; }
  .menue ul {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    width: 100vw; flex-direction: column;
    background: var(--weiss); box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
  }
  .menue--offen ul { display: flex; }
  .menue a { color: var(--dunkel); font-size: 13px; padding: 10px 20px; }
  .menue a::after { display: none; }
  .menue a[aria-current="page"] { background: rgba(0, 0, 0, .04); }
  .start { padding: 80px 0 50px; }
  .start .innen { flex-direction: column; }
  .start__text { flex-basis: auto; padding: 0 80px 50px 0; }
  .start__bild { padding: 0 50px 100px; }
  .bereit__titel { flex: 0 0 401px; }
  .bereit__text p { padding-right: 0; }
  .bereit h2 { line-height: 1.3; }
  .leistungen { padding-top: 100px; }
  .leistungen h2 { margin-bottom: 0; }
  .karten { grid-template-columns: repeat(3, 1fr); }
  .karte { padding: 30px 11px; }
  .stimmen .innen { padding-left: 40px; padding-right: 40px; }
  .stimme blockquote { font-size: 16.6px; }
  .galerie img { height: 200px; }
  .petra__bild { flex: 0 0 432px; }
  .fuss__logo { flex: 0 0 233px; }
  .fuss__logo img { width: 170px; }
  .fuss__luecke { flex: 1; }
  .fuss__copy { font-size: 12.768px; }
}

/* =================== Handy (bis 767) =================== */
@media (max-width: 767px) {
  :root { --h-gross: 29.18px; --h-karte: 18.31px; }
  .innen { padding-left: 20px; padding-right: 20px; }
  /* Knopf stiess rechts an den Rand und brach auf zwei Zeilen um. */
  .kopf .innen { grid-template-columns: 105px 1fr auto; gap: 12px; min-height: 72px; padding: 4px 16px; }
  .kopf__logo img { width: 105px; }
  .kopf__knopf { padding: 13px 18px; font-size: 15px; white-space: nowrap; }
  .menue__schalter { width: 44px; height: 44px; }
  .start { padding: 50px 0; }
  .start .innen { padding-left: 28px; padding-right: 29px; }
  .start__text { padding: 0; text-align: center; }
  .start .knopf { display: block; }
  .start__bild { padding: 36px 0 0; }
  .start__text > p:first-of-type { margin-left: auto; margin-right: auto; }
  .bereit .innen { flex-direction: column; gap: 0; }
  .bereit__titel { flex-basis: auto; padding: 0 0 30px; }
  .bereit h2 { text-align: center; }
  .bereit__text { padding-left: 0; border-left: 0; text-align: center; }
  .bereit__text .knopf { display: block; }
  .karten { grid-template-columns: 1fr; }
  .karte { padding: 30px; }
  .karte img { width: 47px; height: 47px; }
  /* Wie im Original: der Text ragt 20 px in den unteren Innenabstand. */
  .karte h3 { margin: 8px 0 6px; }
  .leistungen .knopf--breit { margin-bottom: 0; }
  .stimmen .innen { padding-left: 20px; padding-right: 20px; }
  .stimmen h2 { padding: 0; }
  .karussell { margin: 0 0 10px; padding: 0 28px; }
  .stimme { flex-basis: 100%; padding: 18px 0; }
  .galerie { flex-direction: column; padding: 0; margin: 0; }
  .galerie-titel { margin: 32px 0 16px; }
  .galerie img { height: 200px; }
  .petra { padding: 25px 0; }
  .petra .innen { flex-direction: column; gap: 10px; }
  .petra__bild { flex-basis: 300px; }
  .petra__text { padding-top: 50px; text-align: center; }
  .petra .knopf { margin: 0; }
  .seitenkopf h1 { font-size: 40px; }
  .seitenkopf { padding: 120px 0 70px; }
  .fuss { padding: 0 0 10px; }
  .fuss .innen { padding: 0; }
  .fuss__oben { flex-direction: column; text-align: center; padding: 0; gap: 10px; }
  .fuss__logo { flex: 0 0 98px; }
  .fuss__logo img { width: 203px; margin: 0 auto; }
  .fuss__luecke { flex: 0 0 40px; }
  .fuss__spalte h2 { line-height: 12px; }
  .fuss__spalte:first-of-type { flex: none; padding-bottom: 40px; }
  .fuss__copy { font-size: 11.49px; padding: 25px 20px; }
}
