/* AS Technischer Kundendienst — Tür & Tor (schlicht, hell, dunkelblau) */

:root {
  --navy: #0B1F3A;
  --navy-mid: #123A6B;
  --navy-soft: #1a4a85;
  --white: #ffffff;
  --off: #f5f7fa;
  --text: #1a1a1a;
  --muted: #555555;
  --line: #d8dee8;
  --header-h: 78px;
  --max: 1080px;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); }
button, input, textarea { font-family: inherit; }

.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: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover,
.nav a:focus-visible { color: var(--navy-mid); text-decoration: underline; }

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  font-size: 13.5px;
  line-height: 1.35;
  flex-shrink: 0;
}
.header-contact a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.header-contact a:hover { color: var(--navy-mid); text-decoration: underline; }

.header-actions { display: none; }
.nav-toggle,
.header-phone {
  display: none;
  background: none;
  border: 0;
  color: var(--navy);
  padding: .4rem;
  cursor: pointer;
}
.nav-toggle { width: 44px; height: 44px; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before {
  top: 0; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0; transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(62vh, 560px);
  background: var(--off);
}
.hero-photo {
  min-height: min(62vh, 560px);
  background: #223 url("../assets/hero.jpg") center 55% / cover no-repeat;
}
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem var(--pad);
  background: var(--navy);
  color: #fff;
}
.hero-kicker {
  margin: 0 0 .5rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c5d4e8;
}
.hero-title {
  margin: 0 0 .9rem;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: #fff;
}
.hero-lead {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #e8eef6;
  max-width: 28rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn {
  display: inline-block;
  background: var(--navy-mid);
  color: #fff;
  border: 0;
  padding: .75rem 1.35rem;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
}
.btn:hover,
.btn:focus-visible { background: var(--navy-soft); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover,
.btn-light:focus-visible { background: #e8eef6; color: var(--navy); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.65);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: 3.4rem 0;
}
.section-alt { background: var(--off); }
.section-head {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.2;
}
.lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  max-width: 42rem;
}

.ueber-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.ueber-copy p { margin: 0 0 1rem; }
.ueber-copy p:last-child { margin-bottom: 0; }
.ueber-photo {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ueber-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.6rem 0 1.8rem;
}
.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.35rem 1.25rem;
}
.svc h3 {
  margin: 0 0 .55rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.svc p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

.notdienst {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
}
.notdienst strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.05rem;
}
.notdienst p { margin: 0; color: #e8eef6; }

.gebiet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.gebiet-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 500;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.6rem;
  align-items: start;
}
.kontakt-card,
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem 1.4rem;
}
.kontakt-card h3 {
  margin: 0 0 .8rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.kontakt-card p { margin: 0 0 .7rem; }
.kontakt-card p:last-child { margin-bottom: 0; }
.kontakt-card a { font-weight: 600; text-decoration: none; }
.kontakt-card a:hover { text-decoration: underline; }

.card p.intro {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 15.5px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row.form-row-plz { grid-template-columns: 8.5rem 1fr; }
.field { margin-bottom: 1rem; }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  padding: .72rem .8rem;
  border-radius: 4px;
  outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 2px rgba(18,58,107,.18);
}
.field input::placeholder,
.field textarea::placeholder { color: #9a9a9a; }

.form-group {
  border: 0;
  border-top: 1px solid var(--line);
  margin: .4rem 0 0;
  padding: .9rem 0 0;
  min-width: 0;
}
.form-sub {
  padding: 0;
  margin: 0 0 .8rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.field textarea.textarea-small { min-height: 90px; }
.field-short { max-width: 13rem; }
.field-file label {
  display: block;
  font-size: 14.5px;
  color: #333;
  margin-bottom: .35rem;
}
.field-file input[type="file"] {
  padding: .55rem .6rem;
  font-size: 15px;
  cursor: pointer;
}
.field .hint {
  display: block;
  margin-top: .3rem;
  font-size: 13px;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: 13.5px;
  line-height: 1.5;
  color: #333;
  margin: .2rem 0 1.2rem;
}
.check input {
  margin-top: .2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--navy-mid);
}

.site-footer {
  background: var(--navy);
  color: #fff;
  margin-top: 0;
}
.footer-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem var(--pad) 1.8rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 1.6rem;
  align-items: center;
}
.footer-logo img {
  height: 48px;
  width: auto;
  background: #fff;
  padding: .35rem .55rem;
  border-radius: 4px;
}
.footer-addr,
.footer-contact {
  font-size: 14.5px;
  line-height: 1.55;
  color: #e8eef6;
}
.footer-addr { text-align: center; }
.footer-contact { text-align: right; }
.footer-contact a {
  color: #fff;
  text-decoration: none;
}
.footer-contact a:hover { text-decoration: underline; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: .75rem var(--pad);
  font-size: 14px;
}
.footer-bar a {
  color: #fff;
  text-decoration: none;
}
.footer-bar a:hover,
.footer-bar a[aria-current="page"] { text-decoration: underline; }

.legal {
  background: var(--white);
  padding: 3rem 0 4rem;
}
.legal .wrap { max-width: 760px; }
.legal h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0;
}
.legal h2 {
  margin: 2rem 0 .6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}
.legal h3 {
  margin: 1.3rem 0 .4rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.legal p, .legal li { color: var(--text); }
.legal a { color: var(--navy-mid); }
.legal address { font-style: normal; margin: 0 0 1rem; line-height: 1.6; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 42vh; order: -1; }
  .ueber-grid,
  .kontakt-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-addr, .footer-contact { text-align: center; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .logo img { height: 42px; }
  .header-contact { display: none; }
  .nav-toggle, .header-phone { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { display: flex; align-items: center; gap: .15rem; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .3rem 0 .8rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .85rem var(--pad);
    border-top: 1px solid var(--off);
  }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row.form-row-plz { gap: 1rem; }
  .field input::placeholder,
  .field textarea::placeholder { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after { transition: none; }
}
