/* AS-TecSolutions GmbH: schlichtes Stylesheet
   Schriften liegen lokal unter /assets/fonts (kein Abruf bei Google, DSGVO-freundlich). */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/source-sans-3-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-600.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --stone: #F1F2EF;
  --ink: #23272B;
  --muted: #545A60;
  --line: #D8DBD5;
  --gold: #A87618;
  --gold-dark: #845B0F;
  --dark: #2A2E32;
  --plate: #E7E9E4;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--stone { background: var(--stone); }
.lead { font-size: 1.25rem; color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip-link:focus { left: .5rem; }

.group-title { margin: 2.6rem 0 0; font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); }
.group-title + .services { margin-top: .8rem; }
.group-title + .coop { margin-top: 1rem; }
.coop + .services { margin-top: 1.6rem; }
.coop { margin-top: 2rem; padding: 1.2rem 1.5rem; border-left: 4px solid var(--gold); background: var(--paper); }
.coop h3 { margin-bottom: .3em; }
.coop p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 80ch; }

@media (min-width: 901px) { .profile .plate { position: sticky; top: 96px; align-self: start; } }

.kontakt-zeile { display: flex; align-items: center; gap: .7rem; }
.kontakt-zeile .ico { flex: none; color: var(--gold-dark); }
.nap .kontakt-zeile { margin-top: .2rem; }

.wa-link { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.wa-link span { color: var(--gold-dark); text-decoration: underline; text-underline-offset: .18em; }
.wa-link:hover span { color: var(--ink); }

/* Kopfzeile */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--gold); }
.brand small { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: .25rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--gold-dark); }
.nav a[aria-current="page"] { color: var(--gold-dark); }
.nav .tel { white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: .45rem .8rem; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .6rem 0; width: 100%; }
}

/* Knöpfe */
.btn { display: inline-block; background: var(--gold-dark); color: #fff; border: 2px solid var(--gold-dark); padding: .75rem 1.4rem; border-radius: 4px; font-weight: 600; text-decoration: none; font-size: 1.05rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--plain { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--plain:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Startbereich */
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-photo { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.area-line { margin-top: 1.8rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { aspect-ratio: 16 / 10; } }

/* Unterseiten-Kopf */
.page-head { padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; margin-top: 2rem; border-top: 2px solid var(--ink); }
.service { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: .3em; }
.service p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.service .more { display: inline-block; margin-top: .5rem; font-weight: 600; font-size: 1rem; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Profil und Typenschild */
.profile { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }

.plate {
  position: relative;
  background: linear-gradient(180deg, #EDEFEA 0%, var(--plate) 100%);
  border: 2px solid #9EA39B;
  border-radius: 6px;
  padding: 1.8rem 1.8rem 1.5rem;
  box-shadow: inset 0 1px 0 #fff;
}
.plate::before, .plate::after, .plate .screw-b::before, .plate .screw-b::after {
  content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, #A5AAA2 60%, #7D8279 100%);
}
.plate::before { top: 9px; left: 9px; }
.plate::after { top: 9px; right: 9px; }
.plate .screw-b::before { bottom: 9px; left: 9px; }
.plate .screw-b::after { bottom: 9px; right: 9px; }
.plate-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin: 0 0 1rem; padding-bottom: .7rem; border-bottom: 1px solid #A9AEA6; }
.plate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: 1rem; }
.plate dt { color: var(--muted); }
.plate dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .plate dl { grid-template-columns: 1fr; gap: 0; } .plate dd { margin-bottom: .6rem; } }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; color: var(--gold); display: block; line-height: 1; margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Bewertungen */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.review { margin: 0; }
.review blockquote { margin: 0 0 .8rem; font-style: italic; font-size: 1.1rem; }
.review figcaption { font-size: .95rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: .1em; font-size: 1.1rem; margin-bottom: .4rem; }
.placeholder-note { background: #FFF6DA; border: 1px dashed var(--gold); padding: .6rem 1rem; font-size: .95rem; border-radius: 4px; display: inline-block; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* Fließtext-Abschnitte auf Unterseiten */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.ticks { padding-left: 1.2rem; margin: 0 0 1em; }
.ticks li { margin-bottom: .45rem; }
.ticks li::marker { color: var(--gold); }
.figure { border-radius: 6px; overflow: hidden; margin: 0; }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* FAQ */
.faq { margin-top: 1.5rem; border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style-position: outside; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.nap { font-style: normal; line-height: 1.8; }
.nap strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.big-tel { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-block; margin: .4rem 0 1rem; }
form .field { margin-bottom: 1rem; }
form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
form input, form select, form textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: .65rem .8rem; border: 1px solid #A9AEA6; border-radius: 4px; background: #fff; color: var(--ink); }
form textarea { min-height: 140px; resize: vertical; }
form .check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; font-weight: 400; }
form .check input { width: auto; margin-top: .3rem; }
.form-status { margin-top: .8rem; font-weight: 600; }

/* Abschlussband */
.cta-band { background: var(--dark); color: #fff; padding: 2.8rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #C9CDC8; }
.cta-band .btn--plain { color: #fff; border-color: #fff; }
.cta-band .btn--plain:hover { background: #fff; color: var(--ink); }
.cta-band .actions { margin-top: 0; }

/* Rechtstexte */
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal p, .legal li { max-width: 75ch; }

/* Fußzeile */
footer { background: var(--dark); color: #C9CDC8; font-size: 1rem; padding: 2.5rem 0 2rem; border-top: 1px solid #3B4045; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
footer a { color: #fff; }
footer strong { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid #3B4045; padding-top: 1.2rem; font-size: .9rem; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* Platzhalter sichtbar markieren (vor Livegang entfernen) */
.ph { background: #FFF1B8; padding: 0 .2em; border-radius: 2px; }

/* Fotoplatzhalter bis zum echten Bild */
.photo-slot { display: flex; align-items: center; justify-content: center; text-align: center; border: 2px dashed #A9AEA6; color: var(--muted); font-weight: 600; padding: 1.5rem; }
.photo-slot small { font-weight: 400; }

/* Bildslider im Startbereich */
.slider { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.slider-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 3px solid var(--gold, #A87618); outline-offset: -3px; }
.slide { flex: 0 0 100%; height: 100%; margin: 0; position: relative; scroll-snap-align: start; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 2.6rem; background: linear-gradient(to top, rgba(20,22,24,.72), rgba(20,22,24,0)); }
.slide figcaption a { color: #fff; text-decoration: none; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: .01em; }
.slide figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #23272B; font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: .2rem; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.slider-btn:hover { background: #fff; }
.slider-btn--prev { left: .75rem; }
.slider-btn--next { right: .75rem; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: .9rem; display: flex; justify-content: center; gap: .5rem; }
.slider-dots button { width: .65rem; height: .65rem; border-radius: 50%; border: 1.5px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 820px) { .slider { aspect-ratio: 4 / 4.2; } .slider-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .slider-track { scroll-behavior: auto; } }
