/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  /* Farben */
  --color-navy:       #0F1B2D;
  --color-navy-mid:   #1E3A5F;
  --color-navy-light: #2A4F7A;
  --color-gold:       #C9A84C;
  --color-gold-light: #E2C47A;
  --color-cream:      #F7F4EF;
  --color-cream-dark: #EDE8DF;
  --color-white:      #fff;
  --color-text:       #2C2C2C;
  --color-text-light: #F0EBE1;
  --color-text-muted: #6B7280;

  /* Typografie */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Schriftgrößen */
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  clamp(1.75rem, 1.25rem + 2.5vw, 2.5rem);
  --text-4xl:  clamp(2.25rem, 1.5rem + 3.75vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1rem + 7vw, 5.5rem);

  /* Abstände */
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-section: clamp(4rem, 3rem + 5vw, 10rem);

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 80px;

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Animationen */
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   600ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

ul[role="list"] { list-style: none; }

/* ==========================================================================
   UTILITY
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-section); }

.section--dark  { background-color: var(--color-navy); color: var(--color-text-light); }
.section--cream { background-color: var(--color-cream); }
.section--white { background-color: var(--color-white); }

.gold { color: var(--color-gold); }

/* Scroll-fade-in Animationsklassen */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 100ms; }
.fade-up:nth-child(3) { transition-delay: 200ms; }
.fade-up:nth-child(4) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-out-expo),
              color var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo);
}

.btn--gold {
  background-color: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}
.btn--gold:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}
.btn--outline-light:hover {
  background-color: var(--color-text-light);
  color: var(--color-navy);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 100;
  background-color: var(--color-navy);
  transition: background-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}

.site-header.scrolled {
  background-color: rgba(15, 27, 45, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo Wortmarke */
.navbar__logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
  color: var(--color-text-light);
  letter-spacing: 0.15em;
}

.logo__top {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
}

.logo__divider {
  display: block;
  height: 1px;
  background-color: var(--color-gold);
  margin-block: 3px;
  opacity: 0.6;
}

.logo__bottom {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--color-text-light);
  opacity: 0.8;
}

/* Desktop Navigation */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(240, 235, 225, 0.75);
  position: relative;
  transition: color var(--duration-fast) ease;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--color-text-light);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__link--cta {
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: var(--space-2) var(--space-6);
  letter-spacing: 0.1em;
}

.navbar__link--cta::after { display: none; }

.navbar__link--cta:hover {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-light);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-normal) ease;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-navy);
  color: var(--color-text-light);
  padding-top: var(--space-16);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.footer__logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-6);
  line-height: 1;
  letter-spacing: 0.15em;
}

.footer__address {
  font-style: normal;
  font-size: var(--text-sm);
  color: rgba(240, 235, 225, 0.7);
  line-height: 1.8;
}

.footer__address a {
  color: rgba(240, 235, 225, 0.7);
  transition: color var(--duration-fast) ease;
}
.footer__address a:hover { color: var(--color-gold); }

.footer__nav {
  display: flex;
  gap: var(--space-12);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: rgba(240, 235, 225, 0.7);
  transition: color var(--duration-fast) ease;
}
.footer__nav a:hover { color: var(--color-gold); }

.footer__bottom {
  padding-block: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(240, 235, 225, 0.4);
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }

  .navbar__menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
  }

  .navbar__menu--open { transform: translateX(0); }

  .navbar__link {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    color: var(--color-text-light);
  }

  .navbar__link--cta {
    font-size: var(--text-lg);
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(15, 27, 45, 0.82) 0%,
    rgba(15, 27, 45, 0.65) 50%,
    rgba(15, 27, 45, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-16);
}

.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.hero__headline em {
  font-style: italic;
  color: var(--color-gold);
}

.hero__sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(240, 235, 225, 0.8);
  max-width: 48ch;
  margin-bottom: var(--space-12);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Scroll-Indikator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(201,168,76,0), var(--color-gold));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   SECTION HEADERS (geteilt)
   ========================================================================== */

.section-header { margin-bottom: var(--space-12); }

.section-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
}

.section--dark .section-title { color: var(--color-text-light); }

/* ==========================================================================
   LEISTUNGEN TEASER
   ========================================================================== */

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.leistung-card {
  background-color: var(--color-white);
  padding: var(--space-8);
  border-top: 3px solid transparent;
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out-expo);
}

.leistung-card:hover {
  border-top-color: var(--color-gold);
  box-shadow: 0 8px 32px rgba(15, 27, 45, 0.08);
  transform: translateY(-4px);
}

.leistung-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  margin-bottom: var(--space-6);
}

.leistung-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.leistung-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.leistung-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-navy);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.leistung-card__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-gold);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.leistung-card:hover .leistung-card__link::after { transform: scaleX(1); }

@media (max-width: 768px) {
  .leistungen-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .leistung-card:last-child { grid-column: 1 / -1; max-width: calc(50% - var(--space-4)); }
}

/* ==========================================================================
   ÜBER-TEASER (Homepage)
   ========================================================================== */

.ueber-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.ueber-teaser__image {
  position: relative;
}

.ueber-teaser__image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center top;
}

.ueber-teaser__image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--color-gold);
  opacity: 0.3;
  z-index: -1;
}

.ueber-teaser__divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-gold);
  margin-block: var(--space-6);
}

.ueber-teaser__text {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.ueber-teaser__content .section-title {
  color: var(--color-navy);
}

/* ==========================================================================
   KONTAKT-BANNER (Homepage)
   ========================================================================== */

.kontakt-banner {
  background-color: var(--color-navy);
  padding-block: var(--space-16);
}

.kontakt-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.kontakt-banner__headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-light);
  margin-top: var(--space-2);
}

.kontakt-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-6);
}

.kontakt-banner__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.kontakt-banner__contact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(240, 235, 225, 0.75);
  transition: color var(--duration-fast) ease;
}
.kontakt-banner__contact:hover { color: var(--color-gold); }

/* Responsive */
@media (max-width: 768px) {
  .ueber-teaser__inner { grid-template-columns: 1fr; }
  .ueber-teaser__image img { height: 400px; }
  .ueber-teaser__image::before { display: none; }
  .kontakt-banner__inner { flex-direction: column; align-items: flex-start; }
  .kontakt-banner__actions { align-items: flex-start; }
}

/* ==========================================================================
   PAGE HERO (Unterseiten)
   ========================================================================== */

.page-hero {
  padding-top: calc(var(--navbar-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background-color: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(201, 168, 76, 0.05));
  pointer-events: none;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text-light);
  margin-top: var(--space-4);
}

/* ==========================================================================
   LEISTUNG DETAIL
   ========================================================================== */

.leistung-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.leistung-detail--reverse .leistung-detail__inner {
  direction: rtl;
}
.leistung-detail--reverse .leistung-detail__inner > * {
  direction: ltr;
}

.leistung-detail__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.leistung-detail__divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-gold);
  margin-block: var(--space-6);
}

.leistung-detail__text {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.leistung-list {
  list-style: none;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.leistung-list li {
  padding-left: var(--space-6);
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.leistung-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 1px;
  background-color: var(--color-gold);
}

@media (max-width: 768px) {
  .leistung-detail__inner { grid-template-columns: 1fr; }
  .leistung-detail--reverse .leistung-detail__inner { direction: ltr; }
  .leistung-detail__image img { height: 280px; }
}

/* ==========================================================================
   ÜBER UNS
   ========================================================================== */

.ueber-detail__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-16);
  align-items: start;
}

.ueber-detail__image {
  position: relative;
}

.ueber-detail__image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;
}

.ueber-detail__image-caption {
  background-color: var(--color-navy);
  padding: var(--space-4) var(--space-6);
}

.ueber-detail__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-light);
  font-weight: 600;
}

.ueber-detail__role {
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.ueber-werte {
  display: flex;
  gap: var(--space-8);
  margin-block: var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-cream-dark);
  border-bottom: 1px solid var(--color-cream-dark);
}

.ueber-wert {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ueber-wert__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.ueber-wert__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Philosophie */
.philosophie__inner { display: flex; flex-direction: column; gap: var(--space-12); }

.philosophie__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.philosophie__item {
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  padding-top: var(--space-6);
}

.philosophie__icon {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: rgba(201, 168, 76, 0.3);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.philosophie__item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.philosophie__item p {
  font-size: var(--text-sm);
  color: rgba(240, 235, 225, 0.65);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .ueber-detail__inner { grid-template-columns: 1fr; }
  .ueber-detail__image img { height: 400px; }
  .ueber-werte { flex-direction: column; gap: var(--space-4); }
  .philosophie__grid { grid-template-columns: 1fr; }
}
