/* ==========================================================================
   Tietje Group – Stylesheet
   Farben & Schriften an Logo und Defence-Präsentation angelehnt
   ========================================================================== */

/* Schriften lokal gehostet (DSGVO – keine Verbindung zu Google Fonts) */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-700.woff2") format("woff2"); }

:root {
  --orange: #e2733a;          /* Markenfarbe (Logo / Präsentation) */
  --orange-dark: #b9541d;     /* Orange für Text auf Weiß (Kontrast AA) */
  --orange-tint: #fbf1ea;
  --ink: #1d2125;
  --ink-2: #3a4148;
  --muted: #5e666e;
  --line: #e7e1dc;
  --bg: #ffffff;
  --bg-warm: #faf6f2;
  --bg-dark: #16191c;
  --bg-dark-2: #20252a;

  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 24, 28, .05), 0 8px 28px rgba(20, 24, 28, .07);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.serif { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.015em; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--bg-dark); color: #e9ecef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead, .section--dark p { color: #c3c9cf; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
.section--dark .eyebrow { color: var(--orange); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 760px; }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.accent { color: var(--orange); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a, .nav button.nav-drop {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font: 600 1rem var(--font-sans); background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.nav-drop:hover { color: var(--orange-dark); background: var(--bg-warm); }
.nav a[aria-current="page"], .nav .is-active > a, .nav .is-active > button { color: var(--orange-dark); }
.nav .nav-drop svg { width: 12px; height: 12px; transition: transform .2s; }
.nav .submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s;
}
.nav .submenu a { display: block; padding: 10px 12px; font-weight: 500; }
.nav li.has-sub:hover .submenu, .nav li.has-sub:focus-within .submenu, .nav li.has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.nav li.has-sub.open .nav-drop svg { transform: rotate(180deg); }
.nav .nav-new { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; background: var(--orange); color: #fff; padding: 2px 6px; border-radius: 4px; line-height: 1.4; }
.nav .nav-cta { background: var(--ink); color: #fff; margin-left: 8px; padding: 10px 20px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--orange); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; display: block; padding: 16px var(--gutter) 40px;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  body.nav-open .nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button.nav-drop { width: 100%; padding: 16px 4px; font-size: 1.125rem; justify-content: space-between; border-radius: 0; }
  .nav a:hover, .nav button.nav-drop:hover { background: none; }
  .nav .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; display: none; min-width: 0; }
  .nav li.has-sub.open .submenu { display: block; }
  .nav .nav-cta { margin: 20px 0 0; justify-content: center; border-radius: 999px; padding: 14px; }
  .nav > ul > li:last-child { border-bottom: 0; }
}

/* Hero (Video / Bild) ------------------------------------------------------ */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--bg-dark); }
.hero--short { min-height: min(62vh, 560px); }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,14,.15) 0%, rgba(10,12,14,.25) 45%, rgba(10,12,14,.78) 100%); }
.hero__content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero__kicker { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .875rem; color: #fff; opacity: .9; margin-bottom: 14px; }
.hero h1 { color: #fff; max-width: 900px; }
.hero p { font-size: clamp(1.125rem, 1.8vw, 1.375rem); max-width: 680px; color: rgba(255,255,255,.9); }
.hero .btn-row { margin-top: 28px; }

/* Page header (ohne Medien) */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 900px; }
.page-head .lead { margin-bottom: 0; }

/* Grids & Cards ------------------------------------------------------------ */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--orange-tint); color: var(--orange); display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.icon svg { width: 28px; height: 28px; }

/* Bildkacheln (Startseite) */
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; background: var(--bg-dark); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,12,14,.8)); }
.tile__label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.tile__label strong { display: block; font-size: 1.375rem; }
.tile__label span { font-size: .9375rem; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }
.tile:hover img { transform: scale(1.05); }
.tile:hover { color: #fff; }
.tile .badge { position: absolute; top: 16px; left: 16px; z-index: 1; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 640px) { .tile { aspect-ratio: 16 / 10; } }

/* Split (Text + Bild) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media img { border-radius: var(--radius); width: 100%; height: auto; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.memo blockquote { margin: 0 0 1.2em; font-size: 1.125rem; color: var(--ink-2); }
.memo .sig { font-family: var(--font-sans); font-weight: 700; font-size: 1.375rem; color: var(--ink); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.gallery--history { grid-template-columns: repeat(5, 1fr); }
.gallery--history img { filter: grayscale(1); }
@media (max-width: 860px) { .gallery, .gallery--history { grid-template-columns: repeat(2, 1fr); } }

/* Listen */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2733a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--bg-warm); border-radius: var(--radius-sm); padding: 18px 20px; border-left: 3px solid var(--orange); }

/* Immobilien-Standortblöcke */
.property { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.property:first-of-type { border-top: 0; }
.property .gallery { margin-top: 28px; }
.contact-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-line svg { width: 20px; height: 20px; color: var(--orange); }

/* Karte */
.map { border: 0; width: 100%; height: 420px; border-radius: var(--radius); background: var(--bg-warm); display: block; }
.map-note { font-size: .875rem; color: var(--muted); margin-top: 8px; }

/* Ansprechpartner */
.person { display: flex; gap: 20px; align-items: center; }
.person img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; }
.person strong { display: block; font-size: 1.125rem; }
.person span { color: var(--muted); }

/* CTA-Band */
.cta-band { background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: #c3c9cf; margin: 8px 0 0; }

/* Formulare */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #d6cfc9; border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(226,115,58,.15); }
.field input[type="file"] { padding: 10px; background: var(--bg-warm); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status.is-ok { display: block; background: #e8f5ec; color: #1d6b37; }
.form-status.is-err { display: block; background: #fdecea; color: #a1281c; }
.hp { position: absolute !important; left: -9999px !important; }
.section--dark .field label { color: #fff; }
.section--dark .consent { color: #aeb5bc; }
.section--dark .consent a { color: var(--orange); }

/* Kontaktblöcke */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list .icon { margin: 0; width: 46px; height: 46px; }
.info-list .icon svg { width: 22px; height: 22px; }
.info-list strong { display: block; }

/* Rechtstexte */
.legal { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.5em; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal table { border-collapse: collapse; width: 100%; font-size: .9375rem; margin-bottom: 1.4em; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal a { word-break: break-word; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--bg-dark); color: #b5bcc3; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 1rem; }
.site-footer a { color: #e9ecef; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid address { font-style: normal; }
.footer-logo img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9375rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal-Animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .btn { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.text-link svg { width: 16px; height: 16px; }
.tile__label svg { width: 16px; height: 16px; flex: none; }
.nav .nav-cta[aria-current="page"] { background: var(--orange); color: #fff; }
