:root {
  color-scheme: light;
  --ink: #102e44;
  --paper: #fffaf1;
  --line: #d4d7d0;
  font: 17px/1.5 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {box-sizing: border-box;}
body {margin: 0;}
#service {
  --accent: var(--ink);
  --tint: #e5edf0;
  --muted: #415460;
  width: min(1120px, calc(100% - 2 * clamp(16px, 4vw, 64px)));
  margin: auto;
  padding: clamp(16px, 2.5vw, 40px) 0 clamp(48px, 7vw, 88px);
}
#service[data-tier="katze"] {--accent: #67374a; --tint: #f2e6e9;}
#service :is(h1,h2) {margin: 0; color: var(--ink); line-height: 1.06; letter-spacing: -.05em; text-wrap: balance;}
#service h1 {font-size: clamp(2rem, 5.5vw, 4.8rem); max-width: 13ch;}
#service h2 {font-size: clamp(1.7rem, 3vw, 2.65rem);}
#service a {color: var(--ink); text-underline-offset: .2em;}
#service :focus-visible {outline: 3px solid var(--accent); outline-offset: 3px;}
#service [id] {scroll-margin-top: 24px;}

.service-hero {
  --pad: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  grid-template-areas: "title photo" "actions photo";
  background: var(--tint);
  border-radius: 20px;
}
#service .service-hero h1 {grid-area: title; align-self: end; margin: var(--pad) var(--pad) .9rem;}
.service-hero > img {
  grid-area: photo; display: block; width: 100%; height: 100%;
  min-height: 0; max-height: 31rem; object-fit: cover; border-radius: 0 20px 20px 0;
}
.service-actions {grid-area: actions; margin: 0 var(--pad) var(--pad); align-self: start; min-width: 0;}
.service-actions a {
  display: grid; align-content: center; padding: .7rem 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  text-decoration: none;
}
.service-actions strong {font-size: 1.05rem; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px;}
.service-actions span {font-size: .9rem; color: var(--muted); margin-top: 2px;}
.service-actions a:hover strong, #service a:hover {text-decoration-thickness: 2px;}
.support {
  display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr);
  align-items: start; gap: clamp(24px,7vw,80px); margin-top: clamp(40px,6vw,76px);
}
#service .service-faq h2 {margin-bottom: 1rem;}
.service-faq details {border-bottom: 1px solid var(--line);}
.service-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 4px 12px 0; cursor: pointer;
  list-style: none; font-weight: 650; line-height: 1.35;
}
.service-faq summary::-webkit-details-marker {display: none;}
.service-faq summary::after {
  content: ""; width: 8px; height: 8px; flex: none; margin-right: 3px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.service-faq details[open] summary::after {transform: rotate(225deg);}
.service-faq details[open] {padding-bottom: .75rem;}
.service-faq details p {margin: 0; max-width: 58ch; color: var(--muted);}
#service .links {display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.2rem;}
.service-faq details a, #service .links a, #beratung > a, .contact-phone a {display: inline-flex; align-items: center; min-height: 44px;}
#beratung {padding: clamp(20px,3vw,36px); border-radius: 16px; background: var(--tint);}
#service #beratung h2 {font-size: clamp(1.5rem,2.25vw,2rem);}
#beratung p {color: var(--muted); margin: .65rem 0 1rem;}
#service #beratung .service-button {
  padding: .55rem 1.1rem; border-radius: 2rem;
  font-weight: 650; background: var(--accent); color: white; text-decoration: none;
}
#beratung .contact-phone {margin-top: 1rem; padding-top: .5rem; border-top: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);}
#beratung .contact-phone a {font-size: 1.15rem; font-weight: 650;}
#beratung .contact-phone span {display: block; color: var(--muted); font-size: .9rem;}
#beratung .contact-more {margin-top: .25rem; font-size: .94rem;}
.story {
  display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr);
  align-items: center; gap: clamp(24px,5vw,56px); margin-top: clamp(40px,6vw,72px);
  padding-top: clamp(24px,4vw,48px); border-top: 1px solid var(--line);
}
.story img {display: block; width: 100%; height: auto; border-radius: 12px;}
.story p {max-width: 54ch; margin: .9rem 0 .35rem;}
@media (max-width: 700px) {
  .service-hero {
    --pad: clamp(16px,4vw,28px);
    grid-template-columns: minmax(0,1fr) minmax(86px,32%);
    grid-template-areas: "title photo" "actions actions";
    gap: 0 var(--pad); padding: var(--pad); border-radius: 16px;
  }
  #service .service-hero h1 {margin: 0; align-self: center;}
  .service-hero > img {aspect-ratio: 1.1; height: auto; align-self: center; border-radius: 12px;}
  .service-actions {margin: var(--pad) 0 0;}
  .service-actions a:last-child {padding-bottom: 0;}
  .support, .story {grid-template-columns: minmax(0,1fr);}
  .support {gap: 32px;}
  .story {gap: 16px;}
  .story img {max-width: 32rem;}
}

/* Group tasks by the part of an order the customer needs to manage. */
.service-actions {display: flex; flex-wrap: wrap; gap: 8px;}
.service-actions a {
  border: 0; align-content: center; min-height: 49px; padding: .7rem 1rem;
  border-radius: 11px; background: var(--paper);
}
.service-actions strong {text-decoration: none; font-size: 1rem;}
.service-actions span {font-size: .86rem;}
.service-actions a:hover strong,.service-actions a:focus-visible strong {text-decoration: underline;}
.service-faq h3 {color: var(--muted); font-size: .9rem; font-weight: 650; margin: 1.15rem 0 .25rem;}
.service-faq details {border: 0; border-radius: 9px;}
.service-faq details[open] {background: #f3efe5; padding: 0 .7rem .7rem;}
.service-faq summary {min-height: 46px; padding-block: .55rem;}
.service-faq details[open] + details {margin-top: 4px;}
#beratung .contact-phone,.story {border-top: 0;}
#beratung .contact-phone {margin-top: .5rem;}
@media(max-width:700px) {
  .service-actions {gap: 7px;}
  .service-actions a,.service-actions a:last-child {padding: .7rem .85rem; flex: 1 1 10rem;}
}
