/* 8.2 Group Corporate Design — Eiswurfgutachten.de
   Design Manual 2025 R14
   --------------------------------------------------
   Orange       #ff7800   Akzent, CTA, Highlights
   Dark Grey    #373737   Logo-Text, dunkle Elemente
   Blue Grey    #324758   Headlines, Slot-Backgrounds
   Blue Grey 70 #687482   Subheadlines
   Blue Grey 40 #A3A8B3   Tertiäre Akzente
   Blue Grey 15 #DADBE0   Hellbacks, Tabellenzeilen
   Headlines: Tienne (Fallback: Palatino Linotype, Georgia, serif)
   Body:      Open Sans (Fallback: Arial, sans-serif)
-------------------------------------------------- */

:root {
  --orange: #ff7800;
  --orange-dark: #e36b00;
  --dark-grey: #373737;
  --blue-grey: #324758;
  --blue-grey-70: #687482;
  --blue-grey-40: #a3a8b3;
  --blue-grey-15: #dadbe0;
  --blue-grey-08: #f1f2f4;
  --white: #ffffff;
  --black: #000000;

  --font-headline: 'Tienne', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(50, 71, 88, 0.08);
  --shadow-md: 0 6px 24px rgba(50, 71, 88, 0.1);
  --shadow-lg: 0 16px 48px rgba(50, 71, 88, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-headline);
  color: var(--blue-grey);
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.4em;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

strong {
  color: var(--blue-grey);
  font-weight: 600;
}

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--orange);
  background: var(--blue-grey-08);
  font-style: italic;
  color: var(--blue-grey);
}

/* ---- Accessibility ---- */
/* Visible keyboard focus everywhere (mouse clicks stay clean via :focus-visible). */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — off-screen (above the viewport) until focused, then slides in.
   Hiding via negative top avoids any horizontal-overflow risk. */
.skip-link {
  position: fixed;
  top: -48px;
  left: 8px;
  z-index: 100;
  background: var(--orange);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-grey-15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img {
  display: block;
  height: 28px;
  width: auto;
}
.primary-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.primary-nav a {
  color: var(--blue-grey);
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a:hover {
  color: var(--orange);
  text-decoration: none;
}
.primary-nav a.active {
  color: var(--orange);
}
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav-cta:hover {
  background: var(--orange-dark);
  color: var(--white) !important;
  text-decoration: none;
}

/* Hamburger toggle — hidden on desktop, revealed below 760px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--blue-grey);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #fff;
    border-bottom: 1px solid var(--blue-grey-15);
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav a {
    padding: 14px 24px;
    font-size: 1rem;
    border-top: 1px solid var(--blue-grey-08);
  }
  .primary-nav a:first-child {
    border-top: 0;
  }
  .nav-cta {
    margin: 10px 24px 6px;
    text-align: center;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 9vw, 110px);
  background:
    radial-gradient(ellipse at 80% -10%, rgba(255, 120, 0, 0.1), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(50, 71, 88, 0.06), transparent 50%),
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  overflow: hidden;
}
.hero-inner {
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text {
  max-width: 620px;
}
.hero-visual {
  margin: 0;
  position: relative;
  max-width: 360px;
  justify-self: end;
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: block;
  background: var(--blue-grey-08);
}
.hero-visual figcaption {
  font-size: 0.82rem;
  color: var(--blue-grey-70);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text {
    max-width: none;
  }
  .hero-visual {
    max-width: 320px;
    justify-self: center;
  }
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--blue-grey-70);
  margin-bottom: 32px;
  max-width: 680px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px 28px;
  border-top: 1px solid var(--blue-grey-15);
  padding-top: 28px;
}
.hero-points li {
  font-size: 0.95rem;
  color: var(--blue-grey-70);
  padding-left: 22px;
  position: relative;
}
.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.15s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-lg {
  padding: 18px 34px;
  font-size: 1.05rem;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-grey);
  border-color: var(--blue-grey-15);
}
.btn-ghost:hover {
  border-color: var(--blue-grey);
  color: var(--blue-grey);
  text-decoration: none;
  background: var(--white);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
}

/* ---- Sections ---- */
.section {
  padding: clamp(64px, 8vw, 110px) 0;
}
.section-alt {
  background: var(--blue-grey-08);
}
.section-dark {
  background: var(--blue-grey);
  color: var(--white);
}
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}
.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.85);
}
.section-dark strong {
  color: var(--white);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--blue-grey-70);
  max-width: 760px;
  margin-bottom: 48px;
}

/* ---- Intro two-col ---- */
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.callout {
  background: var(--blue-grey-08);
  border-left: 4px solid var(--orange);
  padding: 24px 28px;
  border-radius: var(--radius);
}
.callout h3 {
  color: var(--blue-grey);
  margin-top: 0;
}
.callout p {
  margin-bottom: 0;
  font-size: 0.96rem;
  color: var(--blue-grey-70);
}
@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--blue-grey-15);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-grey-40);
}
.card-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 120, 0, 0.12);
  color: var(--orange);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  color: var(--blue-grey-70);
  font-size: 0.96rem;
}
.hazard-grid {
  margin-top: 36px;
}
.source-note {
  margin: 28px 0 0;
  max-width: 840px;
  color: var(--blue-grey-70);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---- Check list ---- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 18px 36px;
}
.check-list li {
  position: relative;
  padding-left: 36px;
  font-size: 0.98rem;
  color: var(--blue-grey-70);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.check-list strong {
  display: block;
  margin-bottom: 2px;
}

/* ---- Method steps (dark section) ---- */
.method-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  counter-reset: step;
}
.method-steps li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 2.4rem;
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}
.method-steps h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.method-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

/* ---- Process (4 steps) ---- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px;
  counter-reset: process;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--blue-grey-15);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-grey);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.process-step h3 {
  margin-bottom: 8px;
}
.process-step p {
  margin: 0;
  color: var(--blue-grey-70);
  font-size: 0.96rem;
}

/* ---- Reasons (warum) ---- */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
}
.reason h3 {
  border-bottom: 3px solid var(--orange);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: inline-block;
}
.reason p {
  color: var(--blue-grey-70);
  font-size: 0.98rem;
  margin: 0;
}

/* ---- CTA section ---- */
.section-cta {
  background: linear-gradient(135deg, var(--blue-grey) 0%, #283844 100%);
  color: var(--white);
  text-align: center;
}
.section-cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.section-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cta-meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ---- Figures ---- */
.figure {
  margin: 40px auto 0;
  max-width: 560px;
  text-align: center;
}
.figure.figure-wide {
  max-width: 480px;
}
.figure.figure-inline {
  margin: 4px 0 32px 32px;
  max-width: 340px;
  float: right;
}
@media (max-width: 800px) {
  .figure.figure-inline {
    float: none;
    margin: 0 auto 32px;
    max-width: 420px;
  }
}
.figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--blue-grey-15);
  background: var(--white);
  padding: 10px;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}
.figure figcaption {
  font-size: 0.84rem;
  color: var(--blue-grey-70);
  font-style: italic;
  margin-top: 12px;
  line-height: 1.5;
}

/* Figures inside dark methodik section */
.method-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
  margin: 0 auto 48px;
  max-width: 820px;
}
.figure-dark {
  margin: 0;
  text-align: center;
}
.figure-dark img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--white);
  padding: 14px;
  box-sizing: border-box;
}
.figure-dark figcaption {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  margin-top: 12px;
  line-height: 1.5;
}

/* Beispiele section — examples from real assessments */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 36px;
  max-width: 920px;
  margin: 0 auto;
}
.example {
  margin: 0;
  text-align: center;
}
.example .example-frame {
  background: var(--white);
  border: 1px solid var(--blue-grey-15);
  border-radius: 6px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.example .example-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.example figcaption {
  font-size: 0.86rem;
  color: var(--blue-grey-70);
  line-height: 1.5;
}
.example figcaption strong {
  display: block;
  color: var(--blue-grey);
  margin-bottom: 4px;
  font-family: var(--font-headline);
  font-size: 1rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark-grey);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  height: 26px;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer-slogan {
  font-family: var(--font-headline);
  font-style: italic;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}
.footer-meta {
  text-align: right;
}
.footer-meta p {
  margin: 0 0 4px;
}
.footer-meta a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-meta a:hover {
  color: var(--orange);
  text-decoration: none;
}
.footer-credits {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 12px !important;
  max-width: 420px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-meta {
    text-align: left;
  }
}
