/* Tripp Kälte- Klimatechnik – Übergangsseite
   Keine externen Schriften, keine externen Ressourcen (DSGVO) */

/* =====================================================
   FARBEN & BILDER – hier zentral anpassen
   ===================================================== */
:root {
  /* Hauptfarben */
  --navy: #0f3658;        /* dunkle Flächen: Header, Notdienst, Footer */
  --blue: #1D6CB3;        /* Links, Icons, Eyebrows */
  --cyan: #1D6CB3;        /* Hervorhebung in Überschrift */
  --accent: #e6000e;      /* Buttons, Notdienst-Nummer */
  --accent-dark: #780109; /* Button-Hover */

  /* Text & Hintergründe */
  --ink: #081d2f;
  --ink-soft: #5988b1;
  --ice: #eaf5fb;
  --frost: #d4eaf6;
  --paper: #f6fafd;
  --white: #ffffff;

  /* Header & Hero */
  --header-bg: rgba(10, 42, 74, 0.96);
  --hero-overlay-1: rgba(10, 42, 74, 0.92);   /* Farbverlauf über dem Bild, links unten */
  --hero-overlay-2: rgba(20, 121, 184, 0.72); /* Farbverlauf über dem Bild, rechts oben */
  --emergency-2: #11507f;

  /* Bilder (Pfade relativ zur index.html; fehlt die Datei, bleibt der Farbverlauf) */
  --hero-image: url("images/slideshow/0.png");

  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 42, 74, 0.10);
  --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: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--navy);
  padding: .6rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

.ico { width: 1.5em; height: 1.5em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--white); text-decoration: none; font-weight: 800;
  letter-spacing: -.01em; line-height: 1.15;
}
.brand .ico { width: 2rem; height: 2rem; color: var(--cyan); }
.brand-logo { height: 4.5rem; width: auto;  object-fit: contain; display: block; }
.brand-logo[hidden] { display: none; }
.brand.has-logo .brand-icon { display: none; }
.brand small { display: block; font-weight: 500; font-size: .75rem; opacity: .75; letter-spacing: .02em; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.35);
  color: var(--white); border-radius: 10px; padding: .5rem .75rem;
  font: inherit; font-weight: 600; cursor: pointer;
}
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.nav a.nav-cta { background: var(--accent); color: var(--white); }
.nav a.nav-cta:hover { background: var(--accent-dark); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--navy);
  background-image:
    linear-gradient(160deg, var(--hero-overlay-1) 0%, var(--hero-overlay-1) 35%, var(--hero-overlay-2) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-flake {
  position: absolute; right: -90px; top: -60px; width: 520px; height: 520px;
  color: rgba(255,255,255,.07); pointer-events: none;
  animation: spin 120s linear infinite;
}
.hero-flake.small { right: auto; left: -70px; top: auto; bottom: -110px; width: 300px; height: 300px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { position: relative; max-width: 780px; }
.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: .4rem .9rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
}
.badge::before {
  content: ""; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(255,138,61,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,138,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } }

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.8rem); line-height: 1.08;
  letter-spacing: -.025em; margin: 1.1rem 0 1rem; font-weight: 850;
}
.hero h1 span { color: var(--cyan); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; color: rgba(255,255,255,.9); margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.notice {
  position: relative; margin-top: 2.5rem; max-width: 780px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-left: 5px solid var(--accent); border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.notice strong { display: block; margin-bottom: .2rem; }
.notice p { margin: 0; color: rgba(255,255,255,.9); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 800; color: var(--blue); margin: 0 0 .5rem;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 1rem; font-weight: 800;
}
.section-intro { max-width: 62ch; color: var(--ink-soft); margin: 0 0 2.2rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); border: 1px solid var(--frost);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,42,74,.16); }
.card-icon {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem;
  border-radius: 14px; background: var(--ice); color: var(--blue); margin-bottom: 1rem;
}
.card-icon .ico { width: 1.7rem; height: 1.7rem; }
.card h3 { margin: 0 0 .45rem; font-size: 1.2rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .meta { margin-top: .8rem; font-size: .88rem; font-weight: 700; color: var(--blue); }

/* About */
.about { background: var(--white); }
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.2fr 1fr; align-items: start; }
.about-grid p { margin: 0 0 1rem; color: var(--ink-soft); }
.about-photo {
  margin: 1.5rem 0 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--frost);
}
.about-photo img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.about-photo[hidden] { display: none; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.facts li {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--ice); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.facts .ico { color: var(--blue); margin-top: .15rem; }
.facts strong { display: block; }
.facts span { color: var(--ink-soft); font-size: .95rem; }

/* Notdienst */
.emergency {
  background: linear-gradient(135deg, var(--navy), var(--emergency-2));
  color: var(--white); padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.emergency-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.emergency h2 { margin-bottom: .4rem; }
.emergency p { margin: 0; color: rgba(255,255,255,.88); max-width: 55ch; }
.emergency .big-phone {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 850; letter-spacing: -.01em;
  color: var(--white); text-decoration: none; white-space: nowrap;
  padding: 1rem; background-color: var(--accent); border-radius: 50px;
}
.emergency .big-phone:hover { color: var(--white); }

/* Careers */
.career-box {
  display: grid; gap: 2rem; grid-template-columns: 1fr 1fr;
  background: var(--white); border: 1px solid var(--frost); border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
.career-box h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.career-box ul { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
.career-box li { margin-bottom: .25rem; }
.career-box p { margin: 0; color: var(--ink-soft); }
.career-cta { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid var(--frost); }

/* Contact */
.contact { background: var(--ice); }
.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
.contact-item {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem;
  border: 1px solid var(--frost); display: flex; gap: 1rem; align-items: flex-start;
}
.contact-item .card-icon { margin: 0; flex: none; }
.contact-item h3 { margin: 0 0 .25rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.contact-item p { margin: 0; font-size: 1.1rem; font-weight: 700; }
.contact-item a { text-decoration: none; word-break: break-word; }
.contact-item a:hover { text-decoration: underline; }
.contact-item small { display: block; margin-top: .4rem; font-weight: 500; color: var(--ink-soft); font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 2rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--white); text-decoration: none; margin-right: 1.2rem; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; color: var(--cyan); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(2.5rem, 5vw, 4rem) 0 4rem; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.02em; margin: 0 0 .5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }
.legal .stand { color: var(--ink-soft); font-size: .9rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Reveal animation (nur wenn JS aktiv) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--navy); padding: .8rem 1.25rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav a { padding: .8rem 1rem; border-radius: 10px; }
  .about-grid, .career-box { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-flake, .badge::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

@media print {
  .site-header, .hero-flake, .nav-toggle { display: none; }
  .hero, .emergency { color: #000; background: none; }
}
