/* ==========================================================================
   CONFLOOR GmbH — Stylesheet für die Rechtsseiten (Impressum, Datenschutz)
   Farb- und Typo-Tokens sind identisch mit index.html.
   ========================================================================== */

/* ==================== FONTS (selbst gehostet — keine externen CDNs) ==================== */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/barlow-300.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); }

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

:root {
  --navy:            #193864;
  --navy-deep:       #10254A;
  --navy-darkest:    #0B1B36;
  --navy-mid:        #23507F;
  --sky:             #8EC4E3;
  --sky-deep:        #5FA5CE;

  --surface:         #FFFFFF;
  --surface-alt:     #F5F7FA;
  --surface-sunken:  #E9EEF4;

  --line:            #DCE3EB;
  --line-strong:     #C3D0DC;

  --ink:             #14202E;
  --ink-soft:        #4A5A6B;
  --ink-muted:       #64748B;

  --on-dark-muted:   #93A9C0;
  --line-on-dark-soft: rgba(255, 255, 255, 0.08);

  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-tech: 'Barlow Condensed', 'Barlow', -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-width: 1240px;
  --radius: 3px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==================== BASIS ==================== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--navy-mid); }

:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--navy); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 200;
  background: var(--navy); color: #fff;
  padding: 0.9rem 1.5rem; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  padding: 0.7rem var(--gutter);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20, 32, 46, 0.06);
}

.nav-logo { display: block; flex: none; }
.nav-logo img { height: 50px; width: auto; transition: height 0.3s var(--ease); }
.nav.scrolled .nav-logo img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
  list-style: none;
}
.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--sky-deep);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 0 8px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== SEITENKOPF ==================== */
.legal-page {
  padding: clamp(8rem, 14vw, 10.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 220px, #FFFFFF 480px);
}
.legal-page-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.section-label::before {
  content: '';
  width: 30px; height: 3px;
  background: var(--sky-deep);
  flex: none;
}

.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-divider {
  width: 68px; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 45%, var(--sky) 45%, var(--sky) 100%);
  margin: 1.5rem 0 3rem;
}

/* ==================== HINWEIS-BANNER ==================== */
.notice-banner {
  background: #FFF7E6;
  border: 1px solid #F0D9A8;
  border-left: 4px solid #D69E2E;
  padding: 1.1rem 1.4rem;
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #6B4E12;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice-banner strong { display: block; color: #7A4B00; margin-bottom: 0.3rem; }
.notice-banner-icon { margin-right: 0.5rem; }
.notice-banner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: rgba(214, 158, 46, 0.16);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.placeholder {
  display: inline-block;
  background: #FFF3D6;
  border: 1px dashed #D69E2E;
  color: #6B4E12;
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ==================== RECHTSTEXT ==================== */
.legal-content h2 {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 3rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2rem 0 0.7rem;
}

.legal-content p { margin-bottom: 1rem; }
.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul,
.legal-content ol { margin: 0 0 1.25rem 1.4rem; }
.legal-content li { margin-bottom: 0.45rem; }
.legal-content li::marker { color: var(--sky-deep); }

.legal-content a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--navy);
  background: var(--surface-sunken);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  word-break: break-word;
}

.legal-content dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0.15rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-content dt {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.4rem 0;
}
.legal-content dd { color: var(--ink); padding: 0.4rem 0; }

/* ==================== FOOTER ==================== */
.footer {
  background: var(--navy-darkest);
  color: var(--on-dark-muted);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-logo img { height: 54px; width: auto; }
.footer-claim { margin: 1.5rem 0 1.25rem; font-size: 0.9375rem; line-height: 1.7; max-width: 38ch; }
.footer-tagline {
  display: inline-block;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}
.footer-heading {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 0.6rem; }
.footer-list a, .footer-contact-item a { color: var(--on-dark-muted); font-size: 0.9375rem; }
.footer-list a:hover, .footer-contact-item a:hover { color: var(--sky); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
}
.footer-contact-item svg { flex: none; width: 18px; height: 18px; color: var(--sky); margin-top: 0.2rem; }

.footer-bottom { border-top: 1px solid var(--line-on-dark-soft); }
.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copyright { font-size: 0.875rem; }
.footer-copyright strong { color: #fff; font-weight: 600; }
.footer-legal-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-legal-links a { font-size: 0.875rem; color: var(--on-dark-muted); }
.footer-legal-links a:hover { color: var(--sky); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 84vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem clamp(1.5rem, 6vw, 3rem);
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px rgba(20, 32, 46, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.0625rem; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .footer-main { grid-template-columns: 1fr; }
  .legal-content dl { grid-template-columns: 1fr; padding: 1.2rem 1.3rem; }
  .legal-content dt { margin-top: 0.6rem; padding-bottom: 0; }
  .legal-content dd { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .nav, .skip-link { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .legal-page { padding-top: 0; }
}
