/* ===================================================================
   Technische Dienstleistungen Otmar Runge — Design System
   Industrie-Ästhetik: Präzision, Metall/Technik, klare Typografie
   Mobile-first
=================================================================== */

/* ===== Lokal gehostete Schriften (kein Google-Fonts-CDN mehr) =====
   Die .woff2-Dateien müssen im Ordner "fonts/" (auf gleicher Ebene wie
   "css/", "js/", "images/") liegen. Siehe fonts/README.txt für die
   Bezugsquelle und genaue Dateinamen. Bis die Dateien vorhanden sind,
   fällt der Browser automatisch auf die Fallback-Schriften weiter unten
   zurück (Georgia bzw. Systemschriften) — die Seite bleibt also nutzbar. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-600.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

:root {
  /* Farben */
  --color-ink: #14181d;          /* fast schwarz, Haupttext */
  --color-anthracite: #1f2933;   /* Header/Footer Grundton */
  --color-steel: #2f4a63;        /* Sekundärfarbe, Steel Blue */
  --color-steel-light: #4a6e8f;
  --color-accent: #b08a4e;       /* Metallic Bronze/Gold Akzent */
  --color-accent-light: #cba86c;
  --color-bg: #f6f7f8;           /* Seitenhintergrund */
  --color-bg-alt: #eceef0;       /* alternierende Sektionen */
  --color-white: #ffffff;
  --color-border: #dde1e5;
  --color-text-muted: #5c6570;

  /* Typografie */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Abstand */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius: 4px;
  --max-width: 1180px;
  --shadow-sm: 0 2px 8px rgba(20, 24, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 24, 29, 0.12);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-steel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-anthracite);
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p { margin: 0 0 var(--space-sm); color: var(--color-ink); }

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 600px) {
  .container { padding: 0 var(--space-sm); }
}

.section {
  padding: var(--space-xl) 0;
}

.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-anthracite);
  color: var(--color-white);
}
.section--dark h2, .section--dark h3, .section--dark p { color: var(--color-white); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-accent-light); color: var(--color-white); }

.btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.btn--outline:hover { background: var(--color-white); color: var(--color-anthracite); }

.btn--outline-dark {
  border-color: var(--color-anthracite);
  color: var(--color-anthracite);
  background: transparent;
}
.btn--outline-dark:hover { background: var(--color-anthracite); color: var(--color-white); }

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-anthracite);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav__logo {
  width: 42px;
  height: 42px;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav__brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: #b7bec6;
  letter-spacing: 0.06em;
}

.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-md);
  align-items: center;
}

.nav__links a {
  color: #e4e7ea;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a:hover, .nav__links a.active { color: var(--color-accent); }

.nav__cta {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-white);
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--color-anthracite);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  color: #e4e7ea;
  padding: 0.9rem var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
}
.nav__mobile a:hover { color: var(--color-accent); }
.nav__mobile .btn { margin: var(--space-sm) var(--space-md); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--color-anthracite) 0%, var(--color-steel) 100%);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--color-accent-light);
  margin-bottom: var(--space-sm);
}

.hero h1 { color: var(--color-white); margin-bottom: var(--space-sm); }
.hero p.lead { font-size: 1.15rem; color: #d5dae0; max-width: 42ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-md);
}

.hero__panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.hero__panel ul { list-style: none; padding: 0; margin: 0; }
.hero__panel li {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #e4e7ea;
  font-size: 0.95rem;
}
.hero__panel li:last-child { border-bottom: none; }
.hero__panel li strong { color: var(--color-white); }

/* ===== USP-Leiste ===== */
.usp-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.usp-bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  text-align: center;
}
@media (min-width: 700px) {
  .usp-bar__grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
}
.usp-item { display: flex; gap: 0.85rem; align-items: flex-start; justify-content: center; }
@media (min-width: 700px) { .usp-item { justify-content: flex-start; } }
.usp-item__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.usp-item h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.usp-item p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }

/* ===== Cards / Grid ===== */
.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.6rem; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-steel);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  font-family: var(--font-head);
  font-weight: 700;
}

/* ===== Karten mit Foto (Leistungen-Kacheln) ===== */
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-alt);
}
.card--photo .card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card--photo .card__photo .card__icon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin-bottom: 0;
  background: rgba(31, 41, 51, 0.82);
  color: var(--color-accent-light);
}
.card--photo .card__body { padding: var(--space-md); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.75rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.case-card {
  background: var(--color-white);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  position: relative;
}
.case-card__badge {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}
.case-card dl { margin: var(--space-sm) 0 0; }
.case-card dt {
  font-weight: 700;
  color: var(--color-anthracite);
  font-size: 0.88rem;
  margin-top: 0.9rem;
}
.case-card dt:first-child { margin-top: 0; }
.case-card dd {
  margin: 0.25rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-lg);
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Über uns Portrait ===== */
.profile {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}
@media (min-width: 800px) { .profile { grid-template-columns: 300px 1fr; } }
.profile__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-white);
}
.profile__name { color: var(--color-accent); font-weight: 600; margin-bottom: 0.2rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
}
.contact-card__row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-card__row:last-child { border-bottom: none; }
.contact-card__icon {
  width: 38px; height: 38px;
  background: var(--color-bg-alt);
  color: var(--color-steel);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.contact-card__row a { color: var(--color-ink); font-weight: 600; }
.contact-card__row a:hover { color: var(--color-accent); }
.contact-card__row span.label { display: block; font-size: 0.8rem; color: var(--color-text-muted); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: var(--space-md);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-embed__consent {
  background: var(--color-bg-alt);
  padding: var(--space-md);
  text-align: center;
}
.map-embed__consent p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 auto var(--space-sm);
}

/* ===== Form ===== */
.form-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--color-anthracite); }
.field input, .field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--color-bg);
  color: var(--color-ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-steel);
  background: var(--color-white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-note { font-size: 0.8rem; color: var(--color-text-muted); }

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: var(--space-sm);
}
.form-status--success { background: #e6f4ea; color: #1e5b32; border: 1px solid #b9dfc4; }
.form-status--error { background: #fdecea; color: #7a2a20; border: 1px solid #f3c2bb; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-anthracite);
  color: #c6ccd2;
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-lg);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: var(--space-sm); }
.site-footer a { color: #c6ccd2; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #9aa1a9;
}
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-credit { color: #6b7178; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--color-accent); }

/* ===== Mobile sticky call bar ===== */
.mobile-callbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  z-index: 90;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.15);
}
.mobile-callbar a {
  flex: 1;
  color: var(--color-white);
  text-align: center;
  padding: 0.9rem 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.mobile-callbar a + a { border-left: 1px solid rgba(255,255,255,0.3); }
@media (min-width: 900px) { .mobile-callbar { display: none; } }
body { padding-bottom: 58px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ===== Legal pages ===== */
.legal-notice {
  background: #fdf3e3;
  border: 1px solid #eccf8f;
  color: #6b5320;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
  font-size: 0.92rem;
}

.legal-content h3 { margin-top: var(--space-md); }
.legal-content p, .legal-content li { color: var(--color-ink); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
