/* ============================================
   SELF-HOSTED FONTS (kein Google Fonts CDN)
   ============================================ */

/* Inter 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat 500 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/montserrat-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/montserrat-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat 700 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/montserrat-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/montserrat-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   DESIGN SYSTEM – CSS Custom Properties
   ============================================ */
:root {
  --color-primary:   #18546B;
  --color-secondary: #043040;
  --color-accent:    #EBD021;
  --color-text:      #000000;
  --color-bg:        #FFFFFF;
  --color-bg-subtle: #F7F9FA;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --header-height: 80px;
  --container-max: 1140px;
  --section-spacing: 100px;
}


/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-secondary);
}

h1 {
  font-weight: 700;
  font-size: 32px;
}

h2 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 24px;
}

h3 {
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 8px;
}


/* ============================================
   UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.btn-large {
  font-size: 17px;
  padding: 18px 36px;
}


/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  max-height: 48px;
  width: auto;
  transition: filter 0.3s ease;
}

.site-header.scrolled .logo {
  filter: brightness(0) saturate(100%);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 4px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled .hamburger-line {
  background-color: var(--color-secondary);
}

/* Hamburger open state */
.nav-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-bg);
  padding: calc(var(--header-height) + 20px) 30px 30px;
  transition: right 0.3s ease;
  z-index: 105;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
}

.nav-open .main-nav {
  right: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-secondary);
  padding: 10px 0;
  display: block;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.nav-cta {
  margin-top: 16px;
}

/* Nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 102;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('assets/foto-berater-portrait.jpg');
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(4,48,64,0.85) 0%, rgba(4,48,64,0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #FFFFFF;
}

.hero-subline {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-top: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-secondary-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  transition: opacity 0.2s ease;
}

.hero-secondary-link:hover {
  opacity: 0.7;
}


/* ============================================
   SECTIONS (allgemein)
   ============================================ */
.section {
  padding: 80px 0;
}

.section-intro {
  font-size: 16px;
  max-width: 720px;
  margin-bottom: 16px;
}

.section-intro:last-of-type {
  margin-bottom: 48px;
}


/* ============================================
   PROBLEM
   ============================================ */
.pain-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

.pain-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(24, 84, 107, 0.15);
  border-radius: 6px;
}

.pain-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.pain-card p {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-secondary);
}


/* ============================================
   LEISTUNGEN
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid rgba(24, 84, 107, 0.2);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  padding: 32px;
}

.service-card h3 {
  color: var(--color-primary);
}

.service-subline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
}

.service-card > p:not(.service-subline):not(.service-focus) {
  margin-bottom: 16px;
}

.service-focus {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: 0.01em;
}


/* ============================================
   PROZESS
   ============================================ */
.section--prozess {
  background-color: var(--color-bg-subtle);
}

.process-steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 24px;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
}

.process-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.process-step h3 {
  margin-bottom: 12px;
}

.process-step p {
  max-width: 320px;
  margin: 0 auto;
  font-size: 15px;
}

.process-connector {
  width: 1px;
  height: 40px;
  background-color: var(--color-primary);
  margin: 0 auto;
}


/* ============================================
   BERATER
   ============================================ */
.berater-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.berater-image {
  flex-shrink: 0;
}

.berater__foto-industrie {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border-left: 4px solid var(--color-primary);
}

.berater-subline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
}

.berater-text p {
  margin-bottom: 14px;
}

.berater-competences {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-primary);
  margin-top: 8px;
  letter-spacing: 0.02em;
}


/* ============================================
   CTA-ABSCHLUSS
   ============================================ */
.section--cta {
  background-color: var(--color-secondary);
  color: var(--color-bg);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.section--cta h2 {
  color: var(--color-bg);
}

.section--cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta__action {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.cta__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  object-fit: cover;
  object-position: 42% 30%;
  flex-shrink: 0;
}

.cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  margin-bottom: 0;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-secondary);
  color: var(--color-bg);
  padding: 40px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-bg);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--color-bg);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
}


/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-page {
  padding-top: calc(var(--header-height) + 60px);
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(24, 84, 107, 0.15);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content li {
  margin-bottom: 4px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(24, 84, 107, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.legal-content a:hover {
  text-decoration-color: var(--color-primary);
}

.legal-back {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(24, 84, 107, 0.15);
}

.legal-back a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
}

@media (min-width: 768px) {
  .legal-content h1 {
    font-size: 36px;
  }

  .legal-content h2 {
    font-size: 24px;
  }
}


/* ============================================
   BOOKING MODAL
   ============================================ */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.booking-modal__content {
  position: relative;
  width: 90vw;
  max-width: 560px;
  height: 85vh;
  max-height: 700px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.booking-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 4px;
}

.booking-modal__close:hover {
  color: #000;
}

.booking-modal__content iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================
   RESPONSIVE – Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 20px;
  }

  body {
    font-size: 17px;
  }

  .container {
    padding: 0 32px;
  }

  .section {
    padding: var(--section-spacing) 0;
  }

  .section-intro {
    font-size: 17px;
  }

  /* Hero */
  .hero {
    padding-top: var(--header-height);
    padding-bottom: 80px;
  }

  .hero::before {
    background: linear-gradient(to right, rgba(4,48,64,0.88) 0%, rgba(4,48,64,0.4) 60%, rgba(4,48,64,0.2) 100%);
  }

  .hero-inner {
    max-width: 60%;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  /* Problem */
  .pain-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .pain-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  /* Leistungen */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* Prozess */
  .process-steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .process-step {
    flex: 1;
    max-width: 300px;
  }

  .process-connector {
    width: 60px;
    height: 1px;
    margin-top: 48px;
    align-self: flex-start;
  }

  /* Berater */
  .berater-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }

  .berater-image {
    flex: 0 0 35%;
  }

  .berater-text {
    flex: 0 0 calc(65% - 60px);
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-contact {
    flex-direction: row;
    gap: 24px;
  }
}


/* ============================================
   RESPONSIVE – Desktop (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 22px;
  }

  body {
    font-size: 18px;
  }

  .container {
    padding: 0 40px;
  }

  /* Hero */
  .hero {
    padding-top: var(--header-height);
    padding-bottom: 100px;
  }

  .hero-inner {
    max-width: 55%;
  }

  .hero-subline {
    font-size: 18px;
  }

  /* Navigation Desktop */
  .hamburger {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .nav-link {
    font-size: 15px;
    padding: 8px 0;
    color: rgba(255,255,255,0.9);
    transition: color 0.3s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #FFFFFF;
  }

  .site-header.scrolled .nav-link {
    color: var(--color-secondary);
  }

  .site-header.scrolled .nav-link:hover,
  .site-header.scrolled .nav-link.active {
    color: var(--color-primary);
  }

  .nav-cta {
    margin-top: 0;
  }

  /* Prozess */
  .process-connector {
    width: 80px;
  }
}