/* porada-schulungen.eu Relaunch – CI siehe CI-ANALYSE.md */

:root {
  --bg-page: #f8f8f8;
  --bg-elevated: #ffffff;
  --text-body: #5c5c5c;
  --text-muted: #8b8b8b;
  --heading: #6c6c6c;
  --accent: #267565;
  --accent-hover: #1f5f54;
  --accent-soft: rgba(38, 117, 101, 0.12);
  --border: rgba(108, 108, 108, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --radius-btn: 8px;
  --radius-card: 12px;
  --font-heading: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-page);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  left: 0.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.logo-link:hover {
  color: var(--accent);
}

.logo-mark {
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--heading);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--heading);
  position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle .bar::before {
  top: -6px;
}

.nav-toggle .bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: var(--space-2) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  color: var(--heading);
  text-decoration: none;
  font-size: 1rem;
}

@media (min-width: 769px) {
  .nav-desktop {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Layout */

main {
  overflow-x: hidden;
}

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

@media (min-width: 1024px) {
  .section {
    padding: var(--space-6) var(--space-3);
  }
}

@media (max-width: 480px) {
  .section {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  .header-inner {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--heading);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}

.section-title--center {
  text-align: center;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-body);
  max-width: 42rem;
}

/* Hero */

.hero {
  background: linear-gradient(160deg, #2a6b5e 0%, #267565 40%, #1a4d45 100%);
  color: #f8f8f8;
  padding-top: calc(var(--space-5) + var(--space-2));
  padding-bottom: var(--space-6);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23f8f8f8' d='M0 24c240 16 480-16 720 0s480 16 720 0v24H0z'/%3E%3C/svg%3E")
    no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
  }
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: #f8f8f8;
}

.hero .sub {
  font-size: 1.0625rem;
  opacity: 0.95;
  margin: 0 0 var(--space-3);
  max-width: 38rem;
}

.hero blockquote {
  margin: 0 0 var(--space-4);
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  border-left: 3px solid rgba(255, 255, 255, 0.45);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.45;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #f8f8f8;
  color: #2a403c;
  border-color: #f8f8f8;
}

.btn-primary:hover {
  background: #eef5f3;
  color: #1a2e2a;
}

.btn-secondary {
  background: var(--accent);
  color: #f8f8f8;
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.hero-visual {
  position: relative;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  color: rgba(248, 248, 248, 0.85);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.compass-deco {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 56px;
  height: 56px;
  opacity: 0.35;
  pointer-events: none;
}

/* USP */

.usp-bar {
  background: var(--bg-page);
  padding: var(--space-3) var(--space-3);
  margin-top: -1px;
}

.usp-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .usp-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--heading);
}

.usp-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

/* Module sections */

.module-section {
  position: relative;
}

.module-section .section-inner {
  background: var(--bg-elevated);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.wave-divider {
  height: 32px;
  margin: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32'%3E%3Cpath fill='%23e8eeec' fill-opacity='0.5' d='M0 16c200 8 400-8 600 0s400 8 600 0V32H0z'/%3E%3C/svg%3E")
    center/cover no-repeat;
  opacity: 0.9;
}

.module-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

@media (min-width: 640px) {
  .module-head {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-claim {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.module-text p {
  margin: 0 0 var(--space-2);
}

.feature-list {
  margin: var(--space-3) 0;
  padding-left: 1.25rem;
  color: var(--text-body);
}

.feature-list li {
  margin-bottom: 0.35rem;
}

.module-cta {
  margin-top: var(--space-3);
}

/* About teaser */

.about-teaser {
  background: linear-gradient(180deg, #eef5f3 0%, var(--bg-page) 100%);
}

.about-teaser .section-inner {
  max-width: 720px;
  text-align: center;
}

.about-teaser p {
  margin: 0 0 var(--space-2);
}

/* Contact */

.contact-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card .placeholder {
  font-family: var(--font-heading);
  color: var(--text-muted);
  margin: var(--space-2) 0;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
}

/* Footer */

.site-footer {
  padding: var(--space-4) var(--space-3);
  background: #ececec;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.footer-links a {
  color: var(--heading);
  text-decoration: none;
}

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

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media (min-width: 1440px) {
  .hero-grid,
  .section-inner,
  .usp-inner {
    max-width: 1140px;
  }
}

/* Breakpoints: 480 / 768 / 1024 / 1440 – siehe CI- und Projektvorgaben */
