/* ==========================================================================
   nachhalti§teuern — Global Styles
   ========================================================================== */

:root {
  --paper: #f3efe6;
  --paper-deep: #ebe4d4;
  --ink: #26362d;
  --ink-soft: #3d4a44;
  --moss: #3d5a42;
  --moss-deep: #31463a;
  --sage: #9bab8f;
  --ochre: #c2833a;
  --clay: #a04e28;
  --line: rgba(26, 36, 32, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(155, 171, 143, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(194, 131, 58, 0.08) 0%, transparent 45%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 230, 0.8);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 32px;
  height: 44px;
  flex-shrink: 0;
}
.logo-mark svg,
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.logo-paragraph {
  color: var(--ochre);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--moss); }

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ochre);
}

/* Hamburger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  margin: -9px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-portal {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-portal:hover {
  color: var(--moss);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: var(--moss);
  transform: translateY(-1px);
}

.nav-cta.active::after { display: none; }

/* === BUTTONS === */
.btn-primary {
  background: var(--moss);
  color: var(--paper);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  border: 1px solid var(--moss);
  font-family: 'Inter Tight', sans-serif;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(36, 52, 41, 0.2);
}

.btn-secondary {
  color: var(--ink);
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  transition: all 0.3s;
}

.btn-secondary:hover {
  gap: 14px;
  color: var(--moss);
  border-color: var(--moss);
}

/* === TYPOGRAPHY HELPERS === */
.section {
  padding: 140px 0;
  position: relative;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--moss);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: attr(data-num);
  font-weight: 500;
  color: var(--ink);
}

.section-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--moss);
}

a { color: var(--clay); }
a:hover { color: var(--ochre); }

/* Lange Komposita (z. B. „Gründungsunternehmen") nicht über den Rand laufen lassen */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 5.8vw, 80px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 32px;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--moss);
}

h1 .paragraph-mark {
  color: var(--ochre);
  font-weight: 400;
  font-style: normal;
}

h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--moss);
}

.section-intro {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 680px;
}

/* === PAGE HERO (für Unterseiten) === */
.page-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 120px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(155, 171, 143, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  max-width: 960px;
}

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.breadcrumb a {
  color: var(--moss);
  text-decoration: none;
}

.breadcrumb span {
  color: var(--ochre);
}

.page-hero h1 {
  margin-bottom: 24px;
}

.page-hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 680px;
}

.page-hero-sub.nowrap-desktop { white-space: nowrap; max-width: none; }
@media (max-width: 900px) {
  .page-hero-sub.nowrap-desktop { white-space: normal; }
}

/* === FOOTER === */
footer {
  background: var(--moss-deep);
  color: var(--paper);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(243, 239, 230, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(243, 239, 230, 0.6);
  line-height: 1.6;
  margin-top: 20px;
  max-width: 340px;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ochre);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(243, 239, 230, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--paper); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(243, 239, 230, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--ochre);
  border-color: var(--ochre);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: var(--paper);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(243, 239, 230, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(243, 239, 230, 0.5);
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
  gap: 20px;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotating-ring {
  animation: rotate-slow 60s linear infinite;
  transform-origin: center;
}

/* === RESPONSIVE BASE === */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  nav { padding: 14px 24px; gap: 10px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 16px;
    background: rgba(243, 239, 230, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 15px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .section { padding: 80px 0; }
  .page-hero { padding: 130px 0 60px; }
  .footer-content { grid-template-columns: 1fr; gap: 40px; }
}
