/* ============================================================
   PETRA PREUSSLER – STYLESHEET
   Mobile First · CSS Grid & Flexbox · Custom Properties
   ============================================================ */

/* ------------------------------------------------------------
   1. CUSTOM PROPERTIES (Design Tokens)
------------------------------------------------------------ */
:root {
  /* Farben */
  --color-teal:        #5d99ad;
  --color-teal-dark:   #3b8893;
  --color-teal-deeper: #2d6b77;
  --color-teal-light:  #eaf4f7;
  --color-teal-bg:     #d4edf3;

  --color-white:       #ffffff;
  --color-off-white:   #f8f9fa;
  --color-light:       #f2f7f9;

  --color-text:        #3a3a3a;
  --color-text-light:  #606060;
  --color-text-muted:  #888888;

  --color-border:      #d0e4ea;
  --color-error:       #c0392b;
  --color-success:     #27ae60;

  /* Typografie */
  --font-body:         'Lato', sans-serif;
  --font-serif:        'Merriweather', Georgia, serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --weight-light:   300;
  --weight-regular: 400;
  --weight-bold:    700;

  --leading-tight:  1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Abstände */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max:   1140px;
  --container-pad:   var(--space-6);
  --header-height:   72px;
  --border-radius:   8px;
  --border-radius-lg: 16px;

  /* Schatten */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12);

  /* Übergänge */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-teal-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-teal-deeper);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Fokus-Styles für Barrierefreiheit */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Screen-Reader-Only Hilfklasse */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ------------------------------------------------------------
   3. TYPOGRAFIE
------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  color: var(--color-text-light);
}

p:last-child { margin-bottom: 0; }

strong { font-weight: var(--weight-bold); color: var(--color-text); }

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-light);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

@media (min-width: 768px) {
  .section { padding-block: var(--space-20); }
}

@media (min-width: 1200px) {
  .section { padding-block: var(--space-24); }
}

.section-white     { background-color: var(--color-white); }
.section-light     { background-color: var(--color-light); }
.section-teal-light { background-color: var(--color-teal-light); }
.section-teal      { background-color: var(--color-teal); }

/* Section Header (zentriert) */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

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

.section-header-light h2,
.section-header-light .section-subtitle {
  color: var(--color-white);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}

.lead-text {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: var(--weight-light);
  margin-bottom: var(--space-6);
}

/* ------------------------------------------------------------
   5. HEADER & NAVIGATION
------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-teal);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background-color: var(--color-teal-deeper);
  box-shadow: var(--shadow-lg);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { opacity: .88; text-decoration: none; }
.logo:focus-visible { outline-color: rgba(255,255,255,.8); }

/* Logo-Bild: dunkel → hell invertieren für teal Header */
.logo-img {
  height: 62px;
  width: auto;
  display: block;
  /* Helles Logo auf dunklem Hintergrund via CSS-Filter */
  filter: brightness(0) invert(1);
  transition: filter var(--transition), opacity var(--transition);
}

/* Fallback-Text (wird ausgeblendet wenn Bild geladen) */
.logo-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.logo-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-light);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.85);
}

@media (max-width: 767px) {
  .logo-img { height: 50px; }
}

/* Desktop Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.main-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.9);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-white);
  background-color: rgba(255,255,255,.15);
  text-decoration: none;
}

.main-nav .nav-cta {
  background-color: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: var(--color-white);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  background-color: var(--color-white);
  color: var(--color-teal-deep);
  color: var(--color-teal-darker, #2d6b77);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--border-radius);
  transition: background-color var(--transition);
}

.hamburger:hover {
  background-color: rgba(255,255,255,.15);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X */
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.is-open {
  display: block;
  opacity: 1;
}

/* ------------------------------------------------------------
   6. BUTTONS
------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  text-align: center;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.7);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: rgba(255,255,255,.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ------------------------------------------------------------
   7. HERO
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: center;
  background-image:
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Fallback wenn kein Bild vorhanden */
  background-color: var(--color-teal-deeper);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 107, 119, .82) 0%,
    rgba(59, 136, 147, .65) 60%,
    rgba(93, 153, 173, .4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-20);
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,.15);
  border-radius: 99px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.hero-lead {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin-bottom: var(--space-8);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ------------------------------------------------------------
   8. KARTEN (ANGEBOTE)
------------------------------------------------------------ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-teal {
  border-top: 4px solid var(--color-teal);
}

.card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-dark);
  margin-bottom: var(--space-5);
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card p {
  margin-bottom: var(--space-5);
}

.card-link {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--color-teal);
  letter-spacing: 0.02em;
}

.card-link:hover {
  color: var(--color-teal-dark);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   9. ZWEI-SPALTEN-LAYOUT
------------------------------------------------------------ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .two-col-reverse .two-col-visual {
    order: -1;
  }
}

.two-col-text h2 { margin-bottom: var(--space-6); }

/* Feature List */
.feature-list {
  list-style: none;
  margin-block: var(--space-6);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: var(--text-base);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background-color: var(--color-teal-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='%235d99ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Quote Box */
.quote-box {
  background-color: var(--color-teal-light);
  border-left: 4px solid var(--color-teal);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8) var(--space-8);
}

.quote-box blockquote {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.quote-box cite {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-teal-dark);
  letter-spacing: 0.02em;
}

/* Icon List Box */
.icon-list-box {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.icon-list-box h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  color: var(--color-teal-deeper);
}

.icon-list-box ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.icon-list-box li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--leading-normal);
}

.icon-bullet {
  color: var(--color-teal);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ------------------------------------------------------------
   10. ÜBER MICH
------------------------------------------------------------ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 380px 1fr;
    gap: var(--space-16);
    align-items: start;
  }
}

.about-image img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

@media (max-width: 899px) {
  .about-image img {
    max-width: 280px;
    margin-inline: auto;
  }
}

.about-text h2 { margin-bottom: var(--space-4); }

.credentials {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.credentials h3 {
  font-size: var(--text-lg);
  color: var(--color-teal-deeper);
  margin-bottom: var(--space-5);
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.credentials-list li {
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-teal);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-light);
}

.credentials-list li strong {
  display: block;
  color: var(--color-text);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

/* ------------------------------------------------------------
   11. ARBEITSWEISE / WERTE
------------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

.value-item {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: background-color var(--transition), transform var(--transition);
}

.value-item:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-3px);
}

.value-icon {
  color: rgba(255,255,255,.9);
  margin-bottom: var(--space-4);
}

.value-item h3 {
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.value-item p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.8);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   12. KONTAKT
------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 1.6fr; gap: var(--space-16); }
}

/* Kontaktinfo */
.contact-info h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-value {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

a.contact-value:hover {
  color: var(--color-teal-dark);
  text-decoration: underline;
}

.contact-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* Kontaktformular */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-form-wrapper h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Form Groups */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-group label span[aria-hidden] {
  color: var(--color-teal);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(93, 153, 173, .2);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--color-error);
}

.field-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  min-height: 1em;
}

.form-group-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-teal);
  cursor: pointer;
}

.form-group-checkbox a {
  color: var(--color-teal);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  margin-top: var(--space-2);
  padding-block: var(--space-4);
  font-size: var(--text-base);
}

.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Form Status */
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e8f8ee;
  color: var(--color-success);
  border: 1px solid #c3ecd0;
}

.form-status.is-error {
  display: block;
  background: #fdeaea;
  color: var(--color-error);
  border: 1px solid #f5c5c5;
}

/* ------------------------------------------------------------
   13. FOOTER
------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-teal-deeper);
  padding-block: var(--space-10);
  color: rgba(255,255,255,.75);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
}

/* Footer-Logo: auf dunklem Hintergrund aufhellen */
.footer-logo {
  height: 62px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.footer-nav {
  display: flex;
  gap: var(--space-5);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   14. ZURÜCK NACH OBEN
------------------------------------------------------------ */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background-color: var(--color-teal);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background-color var(--transition);
  z-index: 90;
  text-decoration: none;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: var(--color-teal-dark);
  text-decoration: none;
}

/* ------------------------------------------------------------
   15. RESPONSIVE – TABLET (768–1199 px)
------------------------------------------------------------ */
@media (max-width: 1199px) {
  .container { --container-pad: var(--space-5); }
}

@media (max-width: 899px) {
  /* Navigation mobile */
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background-color: var(--color-teal-deeper);
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .main-nav a {
    padding: var(--space-4) var(--space-4);
    font-size: var(--text-base);
    border-radius: var(--border-radius);
  }

  .main-nav .nav-cta {
    margin-top: var(--space-4);
    text-align: center;
    padding: var(--space-4);
  }

  /* Hero */
  .hero { min-height: 85vh; min-height: 85svh; }
  .hero-content { max-width: 100%; }
}

/* ------------------------------------------------------------
   16. RESPONSIVE – SMARTPHONE (bis 767 px)
------------------------------------------------------------ */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --container-pad: var(--space-5);
  }

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

  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-content { padding-block: var(--space-24) var(--space-16); }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .two-col { gap: var(--space-8); }
  .about-layout { gap: var(--space-8); }

  .contact-form-wrapper {
    padding: var(--space-6);
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .scroll-top {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}

/* ------------------------------------------------------------
   17. PRINT
------------------------------------------------------------ */
@media print {
  .site-header,
  .scroll-top,
  .hero-actions,
  .contact-form-wrapper,
  .btn { display: none; }

  .hero { min-height: auto; padding: var(--space-8) 0; }
  .hero-overlay { display: none; }
  .hero h1, .hero-lead { color: #000; }
}

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