*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 18px; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 1rem/1.55 Montserrat, system-ui, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--navy); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.65rem); line-height: 1.16; letter-spacing: -.038em; }
h3 { font-size: 1.18rem; line-height: 1.3; }
a { color: var(--blue); }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 5; top: 12px; left: 12px; padding: 10px 14px; border-radius: 10px; background: #fff; }

.hero {
  display: grid;
  align-items: center;
  column-gap: clamp(24px, 4vw, 58px);
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  grid-template-areas: "intro photo";
  padding-block: clamp(28px, 5vw, 70px) 24px;
}
.hero-copy { grid-area: intro; padding-block: 12px; }
.location-line { display: flex; align-items: center; gap: .48em; color: var(--blue); font-weight: 600; font-size: .78rem; margin-bottom: clamp(10px, 2vw, 20px); }
.hero h1 { font-size: clamp(2.35rem, 5.1vw, 4.05rem); letter-spacing: -.074em; line-height: 1.012; }
.hero h1 span { color: var(--blue); }
.hero-description { margin-block: 18px 22px; max-width: 38ch; font-size: clamp(.98rem, 1.55vw, 1.17rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.pill, .text-link { display: inline-flex; align-items: center; gap: .58em; font-weight: 600; }
.pill { justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 100px; background-color: var(--blue); color: #fff; text-decoration: none; }
.pill:hover { background-color: var(--hover); }
.text-link { color: var(--blue); text-underline-offset: 4px; }
.hero-actions .text-link { font-size: .89rem; }

.team-photo { grid-area: photo; align-self: start; min-width: 0; overflow: hidden; border-radius: var(--radius); background-color: var(--burgundy); }
.team-photo img { width: 100%; aspect-ratio: 1.43; object-fit: cover; object-position: 50% 32%; }
.team-photo figcaption { color: #fff; font-weight: 600; padding: 13px 20px; font-size: .88rem; }

.section-wrap { margin-top: clamp(36px, 6vw, 75px); }
.tasks-wrap { margin-top: 8px; }
.tasks { padding: clamp(20px, 3vw, 34px); border-radius: var(--radius); background: var(--blue); }
.tasks h2 { color: #fff; margin-bottom: 18px; }
.task-grid, .service-grid, .location-grid { display: grid; gap: 14px; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.task { min-width: 0; border-radius: 18px; background: #fff; }
.task summary, .task-direct { min-height: 82px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border-radius: 18px; cursor: pointer; }
.task summary { list-style: none; }
.task-direct { color: var(--ink); text-decoration: none; }
.task summary::-webkit-details-marker { display: none; }
.task summary:hover, .task-direct:hover { background: var(--wash); }
.task summary:focus-visible, .task-direct:focus-visible { outline-color: var(--burgundy); outline-offset: -4px; }
.task strong, .task small { display: block; }
.task strong { color: var(--navy); font-weight: 800; line-height: 1.25; }
.task small { margin-top: 3px; font-size: .73rem; line-height: 1.35; }
.task-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background-color: var(--wash); color: var(--blue); }
.task-icon .icon { font-size: 1.12rem; }
.chevron { color: var(--blue); font-size: .83rem; }
.task[open] .chevron { transform: rotate(90deg); }
.task-content { padding: 2px 13px 10px; }
.task-content p { margin-block: 0 8px; font-size: .81rem; }
.task-links { list-style: none; padding: 0; margin: 0; }
.task-links li { border-top: 1px solid var(--line); }
.task-links a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--blue); font-size: .81rem; font-weight: 600; text-underline-offset: 3px; }

.offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--navy); text-decoration: none; }
.offer:hover { background: var(--wash); }
.offer strong, .offer small { display: block; }
.offer strong { color: var(--burgundy); font-weight: 800; }
.offer small { margin-top: 2px; font-size: .79rem; }
.offer .icon { color: var(--burgundy); }

.section-heading { margin-bottom: 16px; }
.section-heading p { margin-top: 6px; }
.service-card, .location-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(15px, 2.1vw, 26px); }
.service-card p { margin: 9px 0 14px; font-size: .91rem; }
.service-card a { margin-top: auto; font-size: .82rem; }
.contact-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 22px; }
.location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.location-card { background: var(--wash); }
.location-card address { font-size: .88rem; font-style: normal; margin: 8px 0 2px; }
.location-card .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.location-link { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 780px) {
  .task summary { scroll-margin-bottom: 80px; }
  html { scroll-padding-top: 10px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-block: 23px 4px; }
  .hero-copy { padding: 0; }
  .location-line { font-size: clamp(.67rem, 2.7vw, .78rem); }
  .hero h1 { font-size: clamp(1.8rem, 8.7vw, 3.9rem); }
  .hero-description { margin-block: 12px 16px; }
  .mobile-shortcuts { display: block; }
  .mobile-shortcuts h2 { font-size: 1.08rem; margin-bottom: 8px; letter-spacing: -.025em; }
  .mobile-shortcuts nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .mobile-shortcuts a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; min-height: 59px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); color: var(--navy); text-decoration: none; font-weight: 600; font-size: clamp(.67rem, 2.6vw, .79rem); }
  .mobile-shortcuts a:hover { background: #e8f0f7; }
  .mobile-shortcuts .icon { color: var(--blue); font-size: 1.2rem; }
  .team-photo { width: 100%; border-radius: 21px; }
  .team-photo img { aspect-ratio: 1.65; object-position: 50% 28%; }
  .team-photo figcaption { padding: 8px 14px; font-size: .79rem; }
  .section-wrap, .tasks-wrap { margin-top: 27px; }
  .task-grid, .service-grid, .location-grid { grid-template-columns: 1fr; gap: 9px; }
  .tasks { padding: 15px; border-radius: 20px; }
  .tasks h2 { font-size: clamp(1.26rem, 5vw, 1.65rem); margin-bottom: 11px; }
  .task summary { min-height: 66px; }
  .offer { padding: 12px 14px; }
  .offer strong { font-size: .9rem; }
  .service-card, .location-card { border-radius: 19px; }
  html[data-screen="start"] main > [data-screen]:not([data-screen="start"]),
  html[data-screen="erledigen"] main > [data-screen]:not([data-screen="erledigen"]),
  html[data-screen="leistungen"] main > [data-screen]:not([data-screen="leistungen"]),
  html[data-screen="kontakt"] main > [data-screen]:not([data-screen="kontakt"]) { display: none; }
}
