/* ============================================================
   Krüger & Söhne Zerspanungstechnik GmbH — Relaunch 2026
   Dunkles Industriedesign nach Flyer-Vorlage (grüne Akzente)
   ============================================================ */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/oswald-v57-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/raleway-v28-latin-regular.woff2") format("woff2"),
       url("../fonts/raleway-v28-latin-regular.woff") format("woff");
}

:root {
  --bg: #0c0e0a;
  --panel: #14170f;
  --panel-2: #1a1e13;
  --line: #262b1c;
  --text: #f2f3ee;
  --muted: #b4bAa6;
  --accent: #96c11e;
  --accent-soft: #b6dd45;
  --accent-dark: #171a05;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Anker-Ziele unter dem sticky Header freihalten */
[id] { scroll-margin-top: 96px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 10, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  line-height: 1.15;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand img { width: 60px; height: auto; flex: none; }
.brand .brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .4px;
  white-space: nowrap;
}
.brand .brand-sub {
  font-size: 11.5px;
  letter-spacing: .8px;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.main-nav a:hover { color: var(--accent-soft); text-decoration: none; }
.main-nav li.current > a { color: var(--accent); }

.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  vertical-align: 2px;
  border: 4px solid transparent;
  border-top-color: var(--accent);
}
.sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { display: flex; }
.sub a {
  text-transform: none;
  letter-spacing: .4px;
  font-family: var(--body);
  font-size: 15px;
  padding: 9px 18px;
}
.sub a:hover { background: rgba(150, 193, 30, .12); }

.nav-cta {
  background: var(--accent);
  color: #10130a !important;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 11px 20px !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav-cta:hover { background: var(--accent-soft); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Hero (Flyer-Layout: Text links, Foto rechts) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
}
.hero > .wrap {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bgs { position: absolute; inset: 0; z-index: -2; }
.hero-bg {
  position: absolute;
  left: 0; right: 0;
  top: -20%;
  height: 140%;
  background-size: cover;
  background-position: 70% center;
  will-change: transform;
}
.hero-bgs[data-slider] .hero-bg { opacity: 0; transition: opacity 1.4s ease; }
.hero-bgs[data-slider] .hero-bg.active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(12,14,10,.94) 34%, rgba(12,14,10,.55) 58%, rgba(12,14,10,.12) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%);
}

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero-copy { max-width: 660px; }
.hero .tagline {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: clamp(20px, 2.6vw, 30px);
  color: var(--accent);
  margin-top: 10px;
  line-height: 1.15;
}
.hero .hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 34px;
  max-width: 520px;
}
.hero.hero-big .hero-features {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-width: none;
  gap: 26px;
}
.hero .feature p { color: #ccd1c2; }

/* Icon-Leiste am Hero-Ende (wie Flyer-Fußzeile) */
.icon-strip {
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 6, .82);
  backdrop-filter: blur(4px);
}
.icon-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}
.icon-strip .strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
}
.icon-strip .strip-item + .strip-item { border-left: 1px solid var(--line); }
.icon-strip svg { width: 22px; height: 22px; color: var(--accent); }

.kicker {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
}

h1, .h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: .5px;
}
h1 .acc, h2 .acc { color: var(--accent); }

.hero .lead {
  margin-top: 16px;
  max-width: 620px;
  font-size: 18.5px;
  color: #e2e5da;
}

.hero-rule {
  width: 64px;
  height: 4px;
  background: var(--accent);
  margin-top: 22px;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}
.breadcrumbs .wrap { padding-top: 12px; padding-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-soft); text-decoration: none; }
.breadcrumbs .sep { color: var(--accent); margin: 0 10px; }
.breadcrumbs span[aria-current] { color: var(--text); }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2, .h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  margin-bottom: 8px;
}
.sub-h {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 760px;
}

h3 {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 20px;
  margin: 26px 0 8px;
  color: var(--accent-soft);
}

.prose p { margin-bottom: 14px; max-width: 76ch; }
.prose b, .prose strong { color: var(--accent-soft); font-weight: 600; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
}
.two-col img { border: 1px solid var(--line); }

/* ---------- Feature rows (Flyer-Icons) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 36px;
}
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ico {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 2px solid var(--accent);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16.5px;
  color: var(--accent);
  margin-bottom: 4px;
}
.feature p { color: var(--muted); font-size: 15.5px; }

/* ---------- Cards / tile grid ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10,12,8,.92) 0%, rgba(10,12,8,.15) 60%);
  transition: background .25s;
}
.tile:hover { text-decoration: none; }
.tile:hover::after { background: linear-gradient(to top, rgba(23,26,5,.95) 0%, rgba(10,12,8,.3) 70%); }
.tile span {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 21px;
  color: var(--text);
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  margin: 0 0 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 18px;
}
.card img { width: 100%; height: 240px; object-fit: cover; border: 1px solid var(--line); }
.card h4 {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--text);
}

/* ---------- Person cards (Kontakt) ---------- */

.person {
  display: flex;
  gap: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 18px;
  align-items: center;
}
.person img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  flex: none;
}
.person .role { color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--display); }
.person b { font-size: 18px; }
.person a { color: var(--text); }
.person a:hover { color: var(--accent-soft); }

/* ---------- Table (Maschinenpark) ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.machines { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15.5px; }
table.machines th {
  background: var(--accent);
  color: #10130a;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  padding: 12px 14px;
  font-size: 14.5px;
}
table.machines td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.machines tbody tr:nth-child(odd) { background: var(--panel-2); }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(100deg, var(--accent) 0%, #7ba414 100%);
  color: #10130a;
  padding: 40px 0;
}
.cta-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner .h2 { color: #10130a; margin: 0; }
.cta-banner p { font-weight: 600; }
.btn-dark {
  background: #10130a;
  color: var(--accent-soft);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 15px 30px;
  display: inline-block;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-dark:hover { text-decoration: none; color: #fff; }

.btn {
  background: var(--accent);
  color: #10130a;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  display: inline-block;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn:hover { background: var(--accent-soft); text-decoration: none; }

/* ---------- Video / map link tiles ---------- */

.media-link {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
}
.media-link img { width: 100%; }
.media-link .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 8, .35);
  transition: background .2s;
}
.media-link:hover .play { background: rgba(10, 12, 8, .15); }
.media-link .play span {
  background: var(--accent);
  color: #10130a;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 13px 24px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* ---------- Footer (Flyer-Design) ---------- */

.site-footer {
  margin-top: 80px;
  font-size: 15.5px;
  color: var(--muted);
}

/* Grünes, angeschrägtes CTA-Band wie die Flyer-Ribbons */
.footer-cta {
  background: linear-gradient(100deg, var(--accent) 0%, #7ba414 100%);
  color: #10130a;
  clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%);
  padding: 52px 0 34px;
}
.footer-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cta .cta-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}
.footer-cta .cta-title span { color: #fff; }
.footer-cta p { font-weight: 600; margin-top: 4px; }

/* Hauptteil mit Zahnrad-Wasserzeichen */
.footer-main {
  position: relative;
  background: #0a0c08;
  padding: 52px 0 40px;
  overflow: hidden;
}
.footer-main::before {
  content: "";
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 560px;
  height: 330px;
  background: url("../img/logo-gear.png") no-repeat center / contain;
  opacity: .06;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand img { margin-bottom: 10px; }
.footer-brand p { margin-top: 10px; }
.social { display: flex; gap: 16px; margin-top: 18px; }
.social a { color: var(--muted); }
.social a:hover { color: var(--accent-soft); }
.social svg { width: 24px; height: 24px; display: block; }
.site-footer h5 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-soft); }

/* Icon-Leiste im Footer */
.footer-strip { background: #070906; border-top: 1px solid var(--line); }

.footer-bottom {
  background: #070906;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 18px;
}

/* ---------- Google-Maps-Einbettung ---------- */
.embed { border: 1px solid var(--line); }
.embed iframe { width: 100%; border: 0; display: block; }
.map-frame iframe { height: 480px; }
.video-frame iframe { aspect-ratio: 16 / 9; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 840px; margin-top: 10px; }
.faq {
  border: 1px solid var(--line);
  background: var(--panel-2);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  margin-right: 12px;
}
.faq[open] summary::before { content: "–"; }
.faq p { padding: 0 20px 18px 42px; color: var(--muted); max-width: 76ch; }

/* ---------- Kontaktformular ---------- */

.contact-form { max-width: 840px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.contact-form label {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 18px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form input[type="file"] { padding: 10px 12px; cursor: pointer; }
.contact-form input[type="file"]::file-selector-button {
  background: var(--accent);
  color: #10130a;
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  margin-right: 14px;
  cursor: pointer;
}
.feld-hinweis {
  display: block;
  margin-top: 6px;
  font-family: var(--body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--muted);
}
.contact-form button { border: 0; cursor: pointer; font-size: 16px; margin-top: 6px; }
.form-hinweis { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 66ch; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form-status {
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid var(--accent);
  background: rgba(150, 193, 30, .12);
  font-weight: 600;
}
.form-status.err { border-color: #c0392b; background: rgba(192, 57, 43, .15); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .main-nav a { padding: 13px 22px; }
  .sub { position: static; display: flex; border: 0; border-left: 3px solid var(--accent); margin-left: 22px; }
  .has-sub > a::after { display: none; }
  .nav-cta { margin: 10px 22px; text-align: center; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 56px; padding-bottom: 44px; }
  .icon-strip .strip-item { padding: 12px 16px; font-size: 13px; }
  .hero::after {
    background:
      linear-gradient(rgba(12,14,10,.82), rgba(12,14,10,.82)),
      linear-gradient(to top, var(--bg) 0%, transparent 25%);
  }
}
