@font-face{
  font-family:"Lora";
  src:url("assets/fonts/Lora-Variable.woff2") format("woff2");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}

:root{
  --primary:#111111;
  --background:#ffffff;
  --text:#262626;
  --muted:#66645f;
  --line:#d9d8d4;
  --line-strong:#aaa8a2;
}

*{box-sizing:border-box}
html{margin:0;min-height:100%;background:var(--background);scroll-behavior:smooth}
body{margin:0;min-height:100%;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;background:var(--background);color:var(--text);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button,select{font:inherit}
.shell{width:min(calc(100% - 64px),1120px);margin-inline:auto}

.skip-link{position:fixed;left:16px;top:16px;z-index:100;padding:9px 12px;background:#fff;border:1px solid var(--primary);border-radius:2px;transform:translateY(-180%)}
.skip-link:focus{transform:none}
:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

.page-frame{min-height:100vh;min-height:100svh;display:grid;grid-template-rows:auto 1fr auto;background:#fff}
.site-header{position:relative;z-index:20;background:#fff;border-bottom:1px solid var(--line)}
.header-inner{height:74px;display:flex;align-items:center}
.brand{display:block;width:min(214px,55vw);line-height:0}
.brand img{width:100%;height:auto;object-fit:contain}

.main-content{display:grid;align-items:center;min-height:0}
.appointment-selection{width:100%;padding-block:72px 88px}
.section-intro{width:min(680px,100%);margin:0 auto 38px;text-align:center}
h1{margin:0;color:var(--primary);font-family:"Lora",Georgia,"Times New Roman",serif;font-size:48px;font-weight:500;line-height:1.12;letter-spacing:-.018em;text-wrap:balance}
.lead{max-width:570px;margin:18px auto 0;color:var(--muted);font-size:15px;line-height:1.65;letter-spacing:.005em}

.appointment-picker{width:min(660px,100%);margin:0 auto;padding:24px 0 0;border-top:1px solid var(--primary);text-align:left}
.appointment-picker label{display:block;margin:0 0 8px;color:var(--primary);font-size:14px;font-weight:400;letter-spacing:0;text-transform:none}
.appointment-controls{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:stretch}
.appointment-controls select{width:100%;min-width:0;min-height:50px;padding:11px 40px 11px 13px;border:1px solid var(--line-strong);border-radius:3px;background:#fff;color:var(--primary);font-size:15px;font-weight:400;line-height:1.3;cursor:pointer;transition:border-color .15s ease}
.appointment-controls select:hover{border-color:#77746e}
.appointment-controls select:focus{border-color:var(--primary);outline:none}
.appointment-submit{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:11px 18px;border:1px solid var(--primary);border-radius:3px;background:var(--primary);color:#fff;font-size:14px;font-weight:400;letter-spacing:.01em;cursor:pointer;white-space:nowrap;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.appointment-submit:hover:not(:disabled),.appointment-submit:focus-visible:not(:disabled){background:#262626;border-color:#262626;color:#fff}
.appointment-submit:disabled{background:#f1f0ed;border-color:#d2d0cb;color:#85827c;cursor:not-allowed}

footer{border-top:1px solid var(--line);background:#fff;color:var(--muted)}
.footer-inner{min-height:78px;display:flex;align-items:center;justify-content:center}
.footer-links{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap}
.footer-links a{font-size:13px;letter-spacing:.01em;text-decoration-thickness:1px;text-underline-offset:3px}
.footer-links a:hover{text-decoration:underline;color:var(--primary)}

/* Bestätigungsseite */
.confirmation{width:100%;padding-block:72px 88px;text-align:center}
.confirmation-card{width:min(720px,100%);margin-inline:auto}
.confirmation h1{font-size:44px;line-height:1.16}
.success-mark{position:relative;display:grid;place-items:center;width:44px;height:44px;margin:0 auto 22px;border:1px solid var(--primary);border-radius:50%;background:#fff}
.success-mark::before{content:"";width:15px;height:7px;border-left:2px solid var(--primary);border-bottom:2px solid var(--primary);transform:translateY(-2px) rotate(-45deg)}
.eyebrow{margin:0 0 12px;color:var(--muted);font-size:13px;font-weight:400;letter-spacing:.015em;text-transform:none}
.confirmation-lead{margin-top:18px}
.confirmation-note{width:min(610px,100%);margin:30px auto 0;padding:22px 0 0;border-top:1px solid var(--line-strong);background:transparent;color:var(--muted);font-size:14px;line-height:1.65;text-align:left}
.confirmation-note strong{display:block;margin-bottom:5px;color:var(--primary);font-size:14px;font-weight:400}
.confirmation-note p{margin:0}
.closing-line{margin:24px 0 0;color:var(--primary);font-family:"Lora",Georgia,"Times New Roman",serif;font-size:17px;font-weight:500}

@media(max-width:760px){
  .shell{width:min(calc(100% - 32px),1120px)}
  .header-inner{height:66px}
  .brand{width:min(196px,64vw)}
  .appointment-selection,.confirmation{padding-block:50px 64px}
  .section-intro{margin-bottom:28px}
  h1{font-size:40px;line-height:1.14;letter-spacing:-.015em}
  .lead{font-size:15px;line-height:1.6}
  .appointment-picker{padding-top:20px}
  .appointment-controls{grid-template-columns:1fr}
  .appointment-submit{width:100%}
  .confirmation h1{font-size:38px}
  .confirmation-note{padding-top:19px}
}

@media(max-width:420px){
  .shell{width:min(calc(100% - 28px),1120px)}
  .brand{width:min(180px,66vw)}
  .appointment-selection,.confirmation{padding-block:42px 52px}
  h1{font-size:34px}
  .lead{font-size:14px}
  .appointment-controls select{min-height:48px;padding-left:11px;font-size:14px}
  .appointment-submit{min-height:48px;padding-inline:14px;font-size:13px}
  .footer-inner{min-height:72px}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Terminseite bleibt auch auf kleinen Displays innerhalb des Viewports */
.appointment-page{
  height:100vh;
  height:100svh;
  height:100dvh;
  min-height:0;
  overflow:hidden;
}
.appointment-page .page-frame{
  height:100%;
  min-height:0;
  grid-template-rows:auto minmax(0,1fr) auto;
}
.appointment-page .main-content{min-height:0;overflow:hidden}
.appointment-page .appointment-selection{
  display:flex;
  min-height:0;
  height:100%;
  flex-direction:column;
  justify-content:center;
  padding-block:clamp(14px,4vh,40px);
}
.appointment-page .section-intro{margin-bottom:clamp(20px,3.4vh,36px)}
.appointment-page .section-intro h1{font-size:clamp(38px,min(4.4vw,7.4vh),48px)}
.appointment-page .lead{margin-top:clamp(12px,2vh,18px)}
.appointment-page .appointment-picker{padding-top:clamp(18px,2.8vh,24px)}
.appointment-page .footer-inner{min-height:clamp(50px,7.2vh,74px)}

@media(max-width:760px){
  .appointment-page .header-inner{height:clamp(54px,9vh,66px)}
  .appointment-page .appointment-selection{padding-block:clamp(10px,3vh,26px)}
  .appointment-page .section-intro{margin-bottom:clamp(14px,2.5vh,23px)}
  .appointment-page .section-intro h1{font-size:clamp(32px,min(10vw,7vh),40px)}
  .appointment-page .lead{font-size:clamp(13px,3.3vw,15px);line-height:1.55}
  .appointment-page .appointment-picker{padding-top:clamp(14px,2.1vh,19px)}
  .appointment-page .appointment-controls{gap:clamp(8px,1.5vh,9px)}
  .appointment-page .appointment-controls select{min-height:clamp(43px,6.8vh,50px);padding-block:9px}
  .appointment-page .appointment-submit{min-height:clamp(42px,6.6vh,48px);padding-block:9px}
  .appointment-page .footer-inner{min-height:clamp(46px,6.8vh,60px)}
}

@media(max-height:620px){
  .appointment-page .header-inner{height:50px}
  .appointment-page .brand{width:min(170px,52vw)}
  .appointment-page .appointment-selection{padding-block:7px}
  .appointment-page .section-intro{margin-bottom:10px}
  .appointment-page .section-intro h1{font-size:clamp(29px,6.5vh,38px)}
  .appointment-page .lead{margin-top:7px;font-size:13px;line-height:1.4}
  .appointment-page .appointment-picker{padding-top:10px}
  .appointment-page .appointment-picker label{margin-bottom:6px;font-size:12px}
  .appointment-page .appointment-controls{gap:7px}
  .appointment-page .appointment-controls select{min-height:40px;padding-block:7px;font-size:13px}
  .appointment-page .appointment-submit{min-height:38px;padding-block:7px;font-size:12px}
  .appointment-page .footer-inner{min-height:42px}
  .appointment-page .footer-links a{font-size:12px}
}

@media(max-height:480px){
  .appointment-page .header-inner{height:42px}
  .appointment-page .brand{width:min(148px,45vw)}
  .appointment-page .section-intro h1{font-size:clamp(25px,6vh,32px)}
  .appointment-page .lead{margin-top:4px;font-size:12px}
  .appointment-page .appointment-picker{padding-top:7px}
  .appointment-page .appointment-picker label{margin-bottom:4px}
  .appointment-page .appointment-controls{grid-template-columns:minmax(0,1fr) auto;gap:7px}
  .appointment-page .appointment-controls select{min-height:34px;padding:5px 36px 5px 10px;font-size:12px}
  .appointment-page .appointment-submit{width:auto;min-height:34px;padding:5px 12px;font-size:11px;white-space:nowrap}
  .appointment-page .footer-inner{min-height:36px}
  .appointment-page .footer-links{gap:18px}
  .appointment-page .footer-links a{font-size:11px}
}

/* Individuelle Terminauswahl mit Portrait */
.custom-select{position:relative;min-width:0}
.select-trigger{width:100%;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:5px 13px 5px 15px;border:1px solid var(--line-strong);border-radius:3px;background:#fff;color:var(--primary);font-size:15px;font-weight:400;line-height:1.3;text-align:left;cursor:pointer}
.select-trigger:hover,.custom-select.is-open .select-trigger{border-color:var(--primary)}
.select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-end{display:flex;align-items:center;flex:0 0 auto;gap:17px;margin-left:8px}
.select-portrait{width:46px;height:46px;object-fit:cover;object-position:center 38%;border-radius:2px;filter:grayscale(1);transition:filter .18s ease}
.custom-select.is-open .select-portrait{filter:grayscale(0)}
.select-chevron{width:15px;height:10px;margin-right:5px;overflow:visible;transition:transform .18s ease}
.select-chevron path{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:square;stroke-linejoin:miter}
.custom-select.is-open .select-chevron{transform:rotate(180deg)}
.select-menu{position:absolute;z-index:40;top:calc(100% + 6px);left:0;right:0;padding:5px;background:#fff;border:1px solid var(--line-strong);border-radius:3px}
.select-menu[hidden]{display:none}
.select-menu button{display:block;width:100%;padding:10px 11px;border:0;border-radius:1px;background:#fff;color:var(--primary);font:inherit;font-size:14px;line-height:1.35;text-align:left;cursor:pointer}
.select-menu button:hover,.select-menu button:focus-visible,.select-menu button[aria-selected="true"]{background:#f2f1ee;outline:none}

/* Der native Select wurde durch die zugängliche individuelle Auswahl ersetzt. */
.appointment-controls{align-items:start}

@media(max-width:760px){
  .select-trigger{min-height:56px}
  .select-portrait{width:44px;height:44px}
  .select-end{gap:14px}
}
@media(max-width:420px){
  .select-trigger{min-height:52px;padding-left:11px;font-size:14px;gap:10px}
  .select-portrait{width:40px;height:40px}
  .select-end{gap:12px;margin-left:4px}
  .select-chevron{margin-right:3px}
}
@media(max-height:620px){
  .select-trigger{min-height:44px;padding-block:3px;font-size:13px}
  .select-portrait{width:36px;height:36px}
  .select-menu button{padding-block:7px;font-size:13px}
}
@media(max-height:480px){
  .select-trigger{min-height:36px;padding:2px 9px;font-size:12px}
  .select-portrait{width:30px;height:30px}
  .select-end{gap:10px}
  .select-menu{top:calc(100% + 3px)}
  .select-menu button{padding:5px 8px;font-size:12px}
}


/* Verfeinerung der Desktop-Proportionen */
@media(min-width:761px) and (min-height:621px){
  .appointment-page .main-content{align-items:start}
  .appointment-page .appointment-selection{
    justify-content:flex-start;
    padding-top:clamp(88px,13vh,138px);
    padding-bottom:56px;
  }
  .appointment-page .section-intro{
    width:min(760px,100%);
    margin-bottom:42px;
  }
  .appointment-page .section-intro h1{
    font-size:clamp(50px,3.7vw,54px);
    font-weight:400;
    line-height:1.08;
    letter-spacing:-.012em;
  }
  .appointment-page .lead{
    max-width:620px;
    margin-top:17px;
    color:#55534f;
    font-size:16px;
    line-height:1.58;
  }
  .appointment-page .appointment-picker{
    width:min(750px,100%);
    padding-top:27px;
    border-top-color:#222;
  }
  .appointment-page .appointment-picker label{
    margin-bottom:9px;
    font-size:13px;
    line-height:1.35;
  }
  .appointment-page .appointment-controls{
    grid-template-columns:minmax(0,1.62fr) minmax(220px,.95fr);
    gap:12px;
  }
  .select-trigger{
    min-height:62px;
    padding:4px 17px 4px 16px;
    font-size:15px;
  }
  .select-end{
    gap:20px;
    margin-left:18px;
  }
  .select-portrait{
    width:52px;
    height:52px;
    border-radius:1px;
    object-position:center 34%;
  }
  .select-chevron{
    width:14px;
    height:9px;
    margin-right:7px;
  }
  .appointment-submit{
    min-height:62px;
    padding-inline:22px;
    font-size:14px;
    letter-spacing:.005em;
  }
  .appointment-submit:disabled{
    background:#f4f3f1;
    border-color:#cfcdc8;
    color:#77746e;
  }
}

/* Ruhigerer Rahmen oben und unten */
.site-header,footer{border-color:#e8e7e4}
.footer-inner{
  justify-content:space-between;
  gap:32px;
}
.footer-copyright{
  margin:0;
  color:var(--muted);
  font-size:13px;
  letter-spacing:.01em;
}
.footer-links{justify-content:flex-end}

@media(max-width:760px){
  .footer-inner{
    justify-content:space-between;
    gap:18px;
  }
  .footer-copyright{font-size:12px}
  .footer-links{gap:16px}
}

@media(max-width:520px){
  .footer-inner{
    min-height:78px;
    flex-direction:column;
    justify-content:center;
    gap:6px;
  }
  .footer-links{justify-content:center}
}

/* CTA-Chevron: gleiche Formsprache wie der Pfeil der Terminauswahl */
.appointment-submit{
  gap:14px;
}
.appointment-submit .button-chevron{
  display:block;
  width:9px;
  height:14px;
  flex:0 0 auto;
  overflow:visible;
  fill:none;
}
.appointment-submit .button-chevron path{
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:square;
  stroke-linejoin:miter;
  vector-effect:non-scaling-stroke;
}

.appointment-submit .button-chevron{
  transition:transform .2s ease;
}
.appointment-submit:hover:not(:disabled) .button-chevron,
.appointment-submit:focus-visible:not(:disabled) .button-chevron{
  transform:translateX(2px);
}
