/* Fiedler.cc – statische Site v1.0.0. Farben und Schriftbild nah am Themler-Original. */
@font-face {
  font-family: "Architects Daughter";
  src: url("../fonts/architects-daughter.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans.woff") format("woff");
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-italic.woff") format("woff");
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --cyan: #269ccb;
  --cyan-dark: #0777a3;
  --cyan-light: #33add6;
  --text: #333333;
  --muted: #777777;
  --line: #dddddd;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --soft-2: #ededed;
  --dark: #292929;
  --script: "Architects Daughter", "Segoe Script", cursive;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
  --max: 1080px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-decoration: none; }
a:hover { color: var(--cyan); text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.25;
  color: #555;
  margin: 0 0 0.5em;
}
p { margin: 0 0 0.8em; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ----- Header / Nav ----- */
.site-header { background: var(--paper); }
.nav-bar {
  display: flex;
  justify-content: center;
  padding: 0.85rem 1rem 0.4rem;
  position: relative;
}
.nav-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.nav-toggle .burger {
  display: inline-block;
  width: 1.15rem;
  height: 2px;
  background: var(--muted);
  vertical-align: middle;
  margin-right: 0.45rem;
  box-shadow: 0 -6px 0 var(--muted), 0 6px 0 var(--muted);
}
#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-list a:hover { color: var(--cyan); background: var(--soft-2); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--cyan); background: #f7f7f7; }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.4rem 1rem 1.1rem;
  flex-wrap: wrap;
}
.brand-logo img { width: 220px; height: auto; }
.brand-tagline {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  color: #7a7a7a;
  margin: 0;
  line-height: 1.15;
}

/* ----- Hero carousel (CSS only) ----- */
.hero {
  position: relative;
  max-width: 760px;
  margin: 0 auto 0.5rem;
  padding: 0 2.4rem 1rem;
}
.hero-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  min-height: 280px;
}
.hero-slides { position: relative; }
.hero-slides .slide {
  display: none;
  margin: 0;
}
.hero-slides .slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 28%;
  margin-inline: auto;
  background: var(--paper);
}
.hero input { position: absolute; opacity: 0; pointer-events: none; }
.hero #h1:checked ~ .hero-slides .slide-1,
.hero #h2:checked ~ .hero-slides .slide-2,
.hero #h3:checked ~ .hero-slides .slide-3 { display: block; }

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: #c8c8c8;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}
.hero-btn:hover { color: var(--cyan); }
.hero-btn.prev { left: 0; }
.hero-btn.next { right: 0; }
.hero-btn { display: none; }
.hero #h1:checked ~ .btn-from-1 { display: block; }
.hero #h2:checked ~ .btn-from-2 { display: block; }
.hero #h3:checked ~ .btn-from-3 { display: block; }

/* ----- Main / sections ----- */
main { display: block; padding: 0; margin: 0; }
.section { padding: 2rem 0; }
.section:last-child { margin-bottom: 0; padding-bottom: 2rem; }
.center { text-align: center; }
.lead {
  font-family: var(--script);
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}
.page-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  margin: 0.4rem 0 1rem;
  color: #555;
}

/* Home gallery */
.tiles-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.tiles-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.tile { margin: 0; overflow: hidden; background: var(--soft); }
.tile img { width: 100%; height: 230px; object-fit: cover; }
.tile-caption {
  position: relative;
}
.tile-caption img { height: 260px; }
.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  color: #444;
  font-family: var(--script);
  text-shadow: 0 0 8px #fff, 0 0 18px #fff;
  pointer-events: none;
}
.tile-overlay strong {
  font-weight: 400;
  font-size: 1.55rem;
  display: block;
  margin-bottom: 0.35rem;
}
.tile-overlay span { font-size: 1.15rem; }

/* Feature columns */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 1.5rem 0 2rem;
}
.features.four { grid-template-columns: repeat(4, 1fr); }
.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.7rem;
  color: #8a8a8a;
}
.feature h2, .feature h3 {
  color: #444;
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Unicomp intro */
.split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
.split .product {
  width: 100%;
  background: #111;
  padding: 0.4rem;
}
.split .product img { width: 100%; object-fit: contain; max-height: 280px; margin: auto; }
.split .product-wpm {
  background: #f5f5f5;
  padding: 0;
  border: 1px solid #ddd;
}
.split .product-wpm img { max-height: 320px; object-fit: contain; background: #fff; }
.split .product-wpm figcaption {
  margin: 0.45rem 0.6rem 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  font-family: var(--sans);
  line-height: 1.35;
}

.intro-text { color: var(--muted); font-size: 0.98rem; }

/* Integration cards */
.integ-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.7rem;
  margin: 1.5rem 0;
}
.integ-visual {
  grid-row: 1 / span 2;
  min-height: 280px;
  background: #1a2330 center/cover no-repeat;
}
.card {
  padding: 1.6rem 1.2rem;
  text-align: center;
  color: #fff;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card h2 {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.4rem 0 0.6rem;
}
.card p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.card-icon { width: 42px; height: 42px; margin: 0 auto; }
.card.orange { background: #e3921a; }
.card.slate { background: #5a5d61; }

.quote-band {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 260px;
}
.quote-cta {
  background: #4aa3c7;
  color: #fff;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-cta h2 { color: #fff; font-size: 2rem; letter-spacing: 0.04em; }
.quote-cta p { color: #f3fbff; }
.quote-side {
  background: #d7d7d7 center/cover no-repeat;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
  text-shadow: 0 0 10px #fff;
}
.quote-side p { font-size: 1.05rem; }
.quote-attr { font-family: var(--script); margin-top: 1rem; }

/* Geräteprüfungen band */
.pruef-band {
  background: #111 center/cover no-repeat;
  color: #fff;
  padding: 2.4rem 1rem 2.6rem;
  text-align: center;
}
.pruef-band h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: 0.04em; text-transform: uppercase; }
.pruef-band .features { padding-top: 1.6rem; }
.pruef-band .feature h2 { color: #fff; }
.pruef-band .feature p { color: #e8e8e8; }
.pruef-band .feature-icon { color: #fff; }
.pruef-band .feature::after {
  content: "";
  display: block;
  width: 70%;
  margin: 1.1rem auto 0;
  border-bottom: 1px solid rgba(255,255,255,0.45);
}

/* Software / Werkstatt hero */
.werkstatt {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  background: #3a3a3a;
  color: #fff;
  min-height: 340px;
  align-items: stretch;
}
.werkstatt-copy {
  background: #3f3f3f;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.werkstatt-copy h1 {
  color: var(--cyan-light);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.werkstatt-copy h1 span { display: block; }
.werkstatt-copy .help {
  font-family: var(--script);
  color: #fff;
  font-size: 1.35rem;
  margin: 0.2rem 0 0.35rem;
}
.werkstatt-copy .sub {
  font-family: var(--script);
  color: #eee;
  margin: 0 0 0.7rem;
}
.werkstatt-copy p { color: #ddd; }
.werkstatt-visual {
  background: #000 center/contain no-repeat;
  position: relative;
  min-height: 280px;
}
.werkstatt-visual .ctm-badge {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 150px;
}

/* Shared mid-page teasers (one each, no duplicate, no gap) */
.teasers { margin: 0; padding: 0; }
.teaser-unicomp {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 280px;
  background: #d9e7ee;
}
.teaser-unicomp .copy {
  background: linear-gradient(180deg, rgba(90,170,200,0.72), rgba(70,150,185,0.78));
  color: #fff;
  padding: 1.6rem 1.5rem;
}
.teaser-unicomp h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.15rem;
}
.teaser-unicomp .sub { font-family: var(--script); font-size: 1.15rem; margin-bottom: 0.8rem; }
.teaser-unicomp p { color: #f4fbff; font-size: 0.95rem; }
.teaser-unicomp .photo {
  background: #222 center/cover no-repeat;
}
.teaser-werkstatt {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 260px;
  background: #111;
  color: #fff;
}
.teaser-werkstatt .copy {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.teaser-werkstatt h2 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}
.teaser-werkstatt .sub { font-family: var(--script); margin-bottom: 0.7rem; color: #eee; }
.teaser-werkstatt p { color: #ddd; font-size: 0.95rem; }
.teaser-werkstatt .photo {
  background: #000 center/contain no-repeat;
}

.btn {
  display: inline-block;
  background: var(--cyan);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  text-decoration: none !important;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  width: fit-content;
}
.btn:hover { background: var(--cyan-dark); }
.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid #fff;
}

/* Legal */
.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.5rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
}
.legal.left, .legal-body {
  text-align: left;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.5rem 0 2.5rem;
  color: var(--text);
}
.legal-body h2 { font-size: 1.4rem; margin-top: 1.4rem; color: #444; }

/* ----- Footer ----- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid #ececec;
  margin: 0;
  padding: 2.2rem 0 1.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0b0b0;
  margin-bottom: 0.9rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { border-bottom: 1px solid var(--line); }
.footer-links a {
  display: block;
  padding: 0.45rem 0;
  color: #9a9a9a;
  text-decoration: none;
}
.footer-links a:hover { color: var(--cyan); }
.contact-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 0.9rem;
  color: var(--muted);
}
.contact-ico {
  width: 36px;
  height: 36px;
  background: #3a3a3a;
  color: #fff;
  display: grid;
  place-items: center;
}
.contact-ico svg { width: 18px; height: 18px; }
.footer-meta {
  margin-top: 1.4rem;
  color: #b0b0b0;
  font-size: 0.8rem;
  text-align: center;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.4rem 0.7rem; z-index: 9; }

/* ----- Responsive ----- */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 1rem 1rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    z-index: 20;
  }
  #nav-toggle:checked ~ .nav-list { display: flex; }
  .brand { gap: 0.8rem; padding-bottom: 0.6rem; }
  .brand-logo img { width: 160px; }
  .tiles-3, .tiles-2, .features, .features.four,
  .split, .integ-grid, .quote-band, .werkstatt,
  .teaser-unicomp, .teaser-werkstatt, .footer-grid {
    grid-template-columns: 1fr;
  }
  .integ-visual { grid-row: auto; min-height: 180px; }
  .tile img, .tile-caption img { height: 200px; }
  .hero { padding: 0 2rem 0.6rem; }
  .hero-slides .slide img { height: 230px; }
  .split .product { max-width: 320px; margin: 0 auto; }
  .werkstatt-visual .ctm-badge { width: 120px; top: 8%; right: 6%; }
  .pruef-band .feature::after { width: 40%; }
}

@media (max-width: 480px) {
  .brand-tagline { font-size: 1.45rem; text-align: center; }
  .wrap { width: calc(100% - 1.4rem); }
}

/* ----- Kontaktformular (mailto, kein PHP, wie ct.m) ----- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.8fr);
  gap: 2rem;
  align-items: start;
  text-align: left;
}
.form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 1rem 0 0;
}
.form label { display: block; font-weight: 700; margin-bottom: 0.25rem; color: var(--text); font-family: var(--sans); }
.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #bbb;
  font-family: var(--sans);
  font-size: 1rem;
  background: #fff;
  border-radius: var(--radius);
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form-hint { color: var(--muted); font-size: 0.92rem; margin: 0; }
.form button { justify-self: start; cursor: pointer; font-family: var(--sans); }
.kontakt-photo img { width: 100%; height: auto; object-fit: cover; }

/* ----- Matrix (aus ct.m, mix-blend auf hellem Grund) ----- */
.matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.9s ease;
}
.matrix-bg.is-on { opacity: 0.18; }
.header-top { position: relative; overflow: hidden; }
.header-inner { position: relative; z-index: 1; }
.matrix-header {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  mix-blend-mode: multiply;
}
.matrix-header.is-on { opacity: 0.45; }
.site-header, main, .site-footer, .float-actions { position: relative; z-index: 1; }
.site-footer { z-index: 2; }

/* Schwebender Knopf zum Kontaktformular */
.float-actions {
  position: fixed;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 40;
}
.float-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  text-decoration: none;
}
.float-btn:hover { background: var(--cyan-dark); color: #fff; text-decoration: none; }
.float-btn svg { width: 20px; height: 20px; }

/* ----- Osterei: Prüfprotokoll ----- */
.pruef-easter {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.pruef-easter.is-on { opacity: 1; }
.pruef-easter.is-out { opacity: 0; }
.pruef-easter-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pruef-easter-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 1.2rem;
  pointer-events: none;
}
.pruef-easter-term {
  margin: 0;
  color: #c8ffd2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 3.2vw, 1.55rem);
  letter-spacing: 0.05em;
  text-align: left;
  text-shadow: 0 0 12px rgba(70, 210, 95, 0.55);
  min-width: min(28rem, 86vw);
}
.pruef-easter-line { margin: 0.2rem 0; }
.pruef-easter-line.is-head { color: #9be7b0; opacity: 0.85; font-size: 0.85em; letter-spacing: 0.12em; }
.pruef-easter-line.is-pass { color: #e8ffe8; font-weight: 700; margin-top: 0.7rem; }
.pruef-easter-badge {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: none;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 35% 30%, #6fe08a, #1d8a3a 58%, #0d5a22);
  box-shadow: 0 0 0 8px #0d5a22, 0 0 0 12px #c8ffd2, 0 0 28px rgba(70, 210, 95, 0.7);
  color: #f4fff4;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: scale(0.6);
  opacity: 0;
}
.pruef-easter-badge.is-on {
  display: grid;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.pruef-easter-badge-text { font-size: 1.05rem; text-shadow: 0 1px 0 rgba(0,0,0,0.35); }
.pruef-easter-msg {
  position: relative;
  z-index: 1;
  margin: 0 1.5rem;
  color: #c8ffd2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 3.2vw, 1.65rem);
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 0 12px rgba(70, 210, 95, 0.55);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pruef-easter-msg.is-on { opacity: 1; }
.pruef-easter.is-reduced { background: rgba(0, 0, 0, 0.82); }
.pruef-easter.is-reduced .pruef-easter-badge {
  display: grid;
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .matrix-bg, .matrix-bg.is-on,
  .matrix-header, .matrix-header.is-on { display: none; }
  .pruef-easter, .pruef-easter-msg, .pruef-easter-badge { transition: none; }
}

@media (max-width: 800px) {
  .kontakt-grid { grid-template-columns: 1fr; }
  .form textarea { min-height: 7rem; }
}

/* Impressums-Adresse als Bild (kein Klartext) */
.impressum-epost {
  display: inline-block;
  vertical-align: -0.2em;
  height: 1.05em;
  width: auto;
}
