/* Hundesalon Alexandra Budde, Gestaltungsentwurf UKMedia */

@font-face {
  font-family: "Gabarito";
  src: url("assets/fonts/gabarito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pink: #F15474;        /* Logo, Schriftzug */
  --pink-soft: #F8C3CB;   /* Logo, Pfote */
  --pink-deep: #B9224A;   /* Links auf Hell */
  --ink: #2A1520;         /* Aubergine, Schrift */
  --mat: #2E2C31;         /* Gummimatte des Pflegetisches */
  --mat-dot: #3B393F;
  --rail: #E4E2E6;        /* Alukante des Tisches */
  --tile: #FFFFFF;
  --tile-2: #F6F2F3;
  --wa: #1F7A4D;

  --display: "Gabarito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--tile);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1; margin: 0; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.about :focus-visible, .slip :focus-visible, .foot :focus-visible, .table :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 22px;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.15;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #432231; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: rgba(42, 21, 32, .08); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #18663f; }
.btn--line-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--line-light:hover { background: rgba(255,255,255,.1); }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: var(--tile);
  border-bottom: 1px solid #F0DDE1;
}
.top__logo img { width: 210px; height: auto; }
.top__nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; }
.top__nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-bottom-color: var(--pink); }
.top__call {
  font-family: var(--display); font-weight: 700; text-decoration: none; white-space: nowrap;
  background: var(--pink); color: var(--ink); padding: 10px 18px; border-radius: 999px;
}
.top__call:hover { background: #F36A86; }

/* Erster Bildschirm */
.hero {
  background: var(--pink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 660px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 64px) var(--gutter) clamp(40px, 5vw, 72px);
  min-height: calc(100svh - 70px);
}
.hero__text { max-width: 640px; }
.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 5.1rem);
  line-height: .96;
  letter-spacing: -0.025em;
  font-weight: 850;
  text-wrap: balance;
}
.hero__lead { margin-top: 26px; font-size: clamp(1.06rem, 1.3vw, 1.22rem); max-width: 36em; line-height: 1.55; }
.hero__price { margin-top: 18px; font-weight: 600; }
.hero__price a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Der Pflegetisch */
.table {
  position: relative;
  justify-self: end;
  width: 100%;
}
.table__top {
  position: relative;
  background-color: var(--mat);
  background-image: radial-gradient(var(--mat-dot) 1.1px, transparent 1.4px);
  background-size: 6px 6px;
  border-radius: 22px 22px 10px 10px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 460px) auto;
  grid-template-areas: "stage cases" "bar cases";
  gap: 16px 18px;
  color: #fff;
  /* Alukante unten wie beim echten Tisch, darunter Schatten auf dem Rosa */
  box-shadow:
    0 10px 0 -2px var(--rail),
    0 12px 0 -2px #BDB9C1,
    0 34px 40px -12px rgba(70, 10, 30, .55);
}
.stage { margin: 0; position: relative; grid-area: stage; }
.stage__img {
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 460px; width: 100%; margin: 0 auto;
  background: #3a383e;
}
.stage__img img { width: 100%; height: 100%; object-fit: cover; }
.js .stage__img--nachher {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transition: opacity .35s ease;
}
.js [data-state="nachher"] .stage__img--nachher { opacity: 1; }
html:not(.js) .stage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html:not(.js) .switch, html:not(.js) .cases { display: none; }
.table__bar { grid-area: bar; display: grid; gap: 8px; justify-items: start; max-width: 460px; }
.stage__caption { font-size: .98rem; line-height: 1.45; color: #F1ECEF; min-height: 2.9em; }

.switch {
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; color: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  padding: 4px 0; border-radius: 999px;
}
.switch__label { opacity: .55; transition: opacity .2s; }
.switch[aria-checked="false"] .switch__label:first-child,
.switch[aria-checked="true"] .switch__label:last-child { opacity: 1; }
.switch__track {
  position: relative; width: 84px; height: 44px; border-radius: 999px;
  background: #57545C; box-shadow: inset 0 2px 4px rgba(0,0,0,.35);
  transition: background-color .2s;
}
.switch[aria-checked="true"] .switch__track { background: var(--pink); }
.switch__knob {
  position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.35);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.switch[aria-checked="true"] .switch__knob { transform: translateX(40px); }

.cases { grid-area: cases; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.case {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 4px; color: #E9E4E8; cursor: pointer;
  font-family: var(--text); font-size: .9rem; font-weight: 600;
}
.case img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid transparent; transition: border-color .2s, transform .2s;
}
.case:hover img { transform: translateY(-2px); }
.case[aria-pressed="true"] { color: #fff; }
.case[aria-pressed="true"] img { border-color: var(--pink); }
.table__note { margin-top: 26px; font-size: .85rem; text-align: right; }

/* Preise */
.prices { padding: clamp(56px, 7vw, 104px) var(--gutter); background: var(--tile-2); }
.prices__head { max-width: var(--max); margin: 0 auto 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.prices__head h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.025em; }
.prices__head p { max-width: 34em; }
.prices__body { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { text-align: left; vertical-align: middle; padding: 14px 8px; border-bottom: 2px solid #E7D9DD; }
.matrix thead th { font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding-bottom: 10px; border-bottom: 3px solid var(--ink); text-align: center; }
.matrix tbody th { font-weight: 400; padding-left: 0; }
.matrix tbody th strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; }
.matrix tbody th span { display: block; font-size: .92rem; color: #5C4651; margin-top: 4px; max-width: 30em; }
.matrix td { text-align: center; width: 1%; }
.matrix--flat { margin-top: 18px; }
.matrix--flat td { text-align: right; }

.pick {
  min-width: 96px; min-height: 52px; padding: 8px 14px;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1;
  color: var(--ink); background: var(--tile); border: 2px solid #E2CCD2; border-radius: 14px;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.pick__from { font-size: .6em; font-weight: 600; }
.pick:hover { border-color: var(--pink); }
.pick[aria-pressed="true"] { background: var(--pink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.pricelist__note { margin-top: 18px; font-size: .95rem; color: #5C4651; max-width: 40em; }

/* Terminzettel */
.slip {
  position: sticky; top: 96px;
  background: var(--ink); color: #fff;
  border-radius: 22px; padding: clamp(22px, 3vw, 34px);
  display: grid; gap: 16px;
}
.slip h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.slip__choice { font-size: 1.08rem; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.08); }
.slip__choice strong { font-family: var(--display); font-size: 1.3rem; color: var(--pink-soft); display: block; line-height: 1.15; }
.slip__field { display: grid; gap: 6px; font-size: .95rem; }
.slip__field input {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
  border: 2px solid transparent; border-radius: 10px; padding: 11px 12px; width: 100%;
}
.slip__field input:focus { outline: 3px solid var(--pink); outline-offset: 1px; }
.slip__send { display: flex; flex-wrap: wrap; gap: 10px; }
.slip__send .btn--wa { flex: 1 1 100%; }
.slip__send .btn--line-light { flex: 1 1 0; }
.slip__call { font-size: 1.02rem; }
.slip__call a { font-family: var(--display); font-weight: 700; color: var(--pink-soft); }
.slip__hint { font-size: .85rem; color: #D8C8D0; }

/* Leistungen */
.services {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(56px, 7vw, 110px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start;
}
.services__photo { position: sticky; top: 100px; }
.services__photo img { border-radius: 20px; box-shadow: 18px 18px 0 var(--pink-soft); width: 100%; max-width: 420px; }
.services h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.025em; }
.services__intro { margin-top: 18px; max-width: 38em; }
.svc { margin: 34px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
.svc div { padding: 16px 0 18px; border-top: 2px solid var(--ink); }
.svc dt { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.05; letter-spacing: -0.01em; }
.svc dd { margin: 6px 0 0; color: #4E3843; }
.svc .show { display: inline-block; margin-left: 4px; color: var(--pink-deep); font-weight: 600; text-underline-offset: 3px; }
.hero__lead .short { display: none; }

.visit {
  margin-top: 40px; padding: clamp(22px, 3vw, 34px);
  background: var(--pink); border-radius: 22px;
  display: grid; gap: 12px; justify-items: start;
}
.visit__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; }
.visit p:not(.visit__title) { max-width: 38em; font-size: 1.1rem; }
.visit .btn { margin-top: 6px; }

/* Über mich */
.about { background: var(--ink); color: #fff; padding: clamp(60px, 8vw, 120px) var(--gutter); }
.about__quote { margin: 0 auto; max-width: var(--max); }
.about__quote p {
  font-family: var(--display); font-weight: 800; color: var(--pink);
  font-size: clamp(2.1rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.025em; max-width: 15em;
  text-wrap: balance;
}
.about__quote footer { margin-top: 18px; color: #E4D6DC; }
.about__grid { max-width: var(--max); margin: clamp(40px, 6vw, 80px) auto 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__photos { position: relative; padding-bottom: 120px; }
.about__p1 img { border-radius: 18px; width: 100%; max-width: 600px; }
.about__p2 { position: absolute; right: 0; bottom: 0; width: 46%; max-width: 280px; }
.about__p2 img { border-radius: 18px; border: 6px solid var(--ink); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.about__text { display: grid; gap: 16px; max-width: 36em; }
.about__lead { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; }
.about__sign { font-family: var(--display); font-weight: 700; color: var(--pink-soft); font-size: 1.2rem; }

/* Anfahrt */
.visit-us { background: var(--pink); padding: clamp(56px, 7vw, 104px) var(--gutter); }
.visit-us h2 { max-width: var(--max); margin: 0 auto; font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.025em; }
.visit-us__grid { max-width: var(--max); margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.visit-us__item { border-top: 3px solid var(--ink); padding-top: 16px; display: grid; gap: 12px; align-content: start; justify-items: start; }
.visit-us__item h3 { font-size: 1.15rem; font-weight: 700; }
.big { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.08; letter-spacing: -0.015em; }
.big a { text-decoration: none; }
.big a:hover { text-decoration: underline; }
.big--mail { font-size: clamp(1.35rem, 2.2vw, 1.9rem); overflow-wrap: anywhere; }

/* Fußzeile */
.foot { background: var(--ink); color: #E4D6DC; padding: 32px var(--gutter) 40px; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
.foot__draft { max-width: 60em; }
.foot__links { display: flex; gap: 20px; }

.dock { display: none; }

/* Tablet */
@media (max-width: 1100px) {
  .top__nav { display: none; }
  .top__call { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text { max-width: 760px; }
  .table { justify-self: center; max-width: 620px; }
  .prices__head, .prices__body { grid-template-columns: minmax(0, 1fr); }
  .slip { position: static; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .services__photo { position: static; max-width: 420px; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photos { max-width: 600px; }
}

/* Handy */
@media (max-width: 760px) {
  body { padding-bottom: 66px; }
  .top { padding-top: 8px; padding-bottom: 8px; gap: 12px; }
  .top__logo img { width: 158px; }
  .top__call { padding: 9px 14px; font-size: .95rem; }
  .top__call-label { display: none; }
  .hero { padding-top: 22px; gap: 22px; }
  .hero__title { font-size: clamp(2.05rem, 9.4vw, 2.6rem); }
  .hero__lead { margin-top: 14px; font-size: 1rem; }
  .hero__price, .hero__actions { display: none; }
  .table__top { padding: 12px; border-radius: 16px 16px 8px 8px; gap: 10px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "bar" "cases"; }
  .table__bar { justify-items: center; text-align: center; max-width: none; gap: 4px; }
  .cases { flex-direction: row; justify-content: space-between; gap: 2px; }
  .stage__caption { font-size: .92rem; min-height: 0; }
  .switch { font-size: 1.15rem; gap: 10px; }
  .hero__lead .long { display: none; }
  .hero__lead .short { display: inline; }
  .case img { width: 54px; height: 54px; }
  .case { font-size: .8rem; }
  .cases { gap: 4px; }
  .table__note { margin-top: 22px; font-size: .8rem; }
  .matrix thead th { font-size: .95rem; padding-left: 2px; padding-right: 2px; }
  .wide { display: none; }
  .matrix th, .matrix td { padding: 12px 3px; }
  .matrix tbody th { padding-left: 0; }
  .matrix tbody th strong { font-size: 1.12rem; }
  .matrix tbody th span { font-size: .82rem; }
  .pick { min-width: 0; padding: 8px 8px; font-size: 1.12rem; min-height: 48px; border-radius: 10px; }
  .pick__from { display: block; font-size: .62em; margin-bottom: 2px; }
  .matrix--flat .pick { min-width: 74px; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .services__photo img { width: calc(100% - 10px); box-shadow: 10px 10px 0 var(--pink-soft); }
  .about__photos { padding-bottom: 90px; }
  .visit-us__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot { padding-bottom: 24px; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; min-height: 46px;
    font-family: var(--display); font-weight: 700; text-decoration: none; border-radius: 999px;
    color: #fff; border: 2px solid rgba(255,255,255,.6);
  }
  .dock a:first-child { background: var(--pink); color: var(--ink); border-color: var(--pink); }
}

button, a { -webkit-tap-highlight-color: transparent; }
