/* ========================================
   1. Globale Variablen, Reset & Grundlayout
   ======================================== */
:root {
  --bg: #f5f5f5;
  --white: #ffffff;
  --text: #111111;
  --muted: #555555;
  --border: #e0e0e0;
  --button: #111111;
  --button-text: #ffffff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 999px;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Weißer Karten-Wrapper */
.page-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 0 0 1px #e3e3e3;
  flex: 1;
}

/* Standard-Mainlayout */
main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ========================================
   2. Accessibility – Skip-Link
   ======================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border-radius: 999px;
  z-index: 1000;
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus {
  left: 16px;
}

/* ========================================
   3. Header & Navigation
   ======================================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

/* Logo-Text, klickbar zur Startseite */
.logo {
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.logo:hover {
  text-decoration: underline;
}

/* Hauptnavigation */
nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
}

nav a:hover {
  background: #f0f0f0;
}

/* Aktiver Menüpunkt */
nav a.active,
nav a[aria-current="page"] {
  background: #111111;
  color: #ffffff;
}

nav a.active:hover,
nav a[aria-current="page"]:hover {
  background: #111111;
  opacity: 0.9;
}

/* ========================================
   4. Buttons (global & Angebot)
   ======================================== */
.btn-primary,
.btn-secondary,
.ak-button {
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.7rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

/* Haupt-CTA (schwarz) */
.btn-primary,
.ak-button {
  background: var(--button);
  color: var(--button-text);
  border-color: var(--button);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover,
.ak-button:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Sekundärer Button */
.btn-secondary {
  background: #f3f3f3;
  color: var(--text);
  border-color: #d7d7d7;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
  background: #e7e7e7;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

/* Buttons in Angebotskarten – zentriert */
.ak-service-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Vollbreiter Button im Modal */
.ak-button.ak-button--full {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Kleiner Hilfstext z.B. CTA */
.cta-text {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ========================================
   5. Bild-Container (einheitlich + schwarzweiß)
   ======================================== */
.hero-image-placeholder,
.cta-image-placeholder,
.card-image-placeholder,
.about-image-placeholder,
.ak-image-placeholder,
.ak-service-media .ak-image-placeholder {
  background: #e0e0e0;
  border-radius: 1.25rem;
  border: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Standard-Verhältnisse je nach Bereich */
.hero-image-placeholder,
.cta-image-placeholder {
  aspect-ratio: 4 / 3;
}

.card-image-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
}

.about-image-placeholder {
  aspect-ratio: 1 / 1;
}

.ak-service-media .ak-image-placeholder {
  min-height: 290px;
}

/* Bilder selbst */
.hero-image-placeholder img,
.cta-image-placeholder img,
.card-image-placeholder img,
.about-image-placeholder img,
.ak-image-placeholder img,
.ak-service-media .ak-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  filter: grayscale(100%);
}

.about-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* oder 20% 0 für noch weiter nach oben */
}

/* ========================================
   6. Startseite – Hero-Bereich
   ======================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Einheitliche Abschnittsüberschriften */
.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ========================================
   7. Startseite – Qualitätsversprechen
   ======================================== */
.features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fafafa;
  border-radius: var(--radius-lg);
  padding: 12px 12px 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-image-placeholder {
  border-style: dashed;
  border-width: 1px;
  color: #777;
  font-size: 12px;
}

.feature-title {
  font-size: 15px;
  font-weight: 600;
}

.feature-text {
  font-size: 13px;
  color: var(--muted);
}

/* ========================================
   8. Startseite – CTA-Bereich
   ======================================== */
.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
}

.cta-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========================================
   9. Startseite – Testimonials
   ======================================== */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  background: #fafafa;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 8px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ddd;
}

/* ========================================
   10. About-Seite – Layout & Kontakt
   ======================================== */
.about-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: flex-start;
}

.about-text-block {
  display: flex;
  text-align: justify;
  flex-direction: column;
  gap: 12px;
}

.about-title {
  margin-bottom: 4px;
}

.about-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}

.about-paragraph {
  font-size: 14px;
  color: var(--text);
}

/* Kontaktformular */
.contact-section {
  margin-top: 8px;
}

.contact-form {
  margin-top: 12px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.form-field.full-width {
  flex-basis: 100%;
}

.form-field label {
  font-size: 13px;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  resize: vertical;
  background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #111111;
}

.contact-submit {
  margin-top: 4px;
  width: auto;
  align-self: center;
}

/* ========================================
   11. Angebotsseite – Hero & Leistungen
   ======================================== */
.ak-landing {
  background: #f5f5f5;
  color: #111;
}

/* Hero-Angebot mit Bild + Text im Bild */
.ak-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 4rem;
}

/* Bild als Hintergrund */
.ak-hero-bg {
  position: absolute;
  inset: 0;
}

.ak-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.75);
  opacity: 0.55;
}

/* Text im Hero-Bild */
.ak-hero-inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
  z-index: 2;
}

.ak-hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.ak-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.ak-hero-subtitle {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

/* Angebotsboxen */
.ak-services {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.ak-service-row {
  display: flex;
  gap: 3rem;
  align-items: stretch;
  margin-bottom: 5rem;
}

.ak-service-row--reverse {
  flex-direction: row-reverse;
}

.ak-service-text {
  flex: 1;
  background: #fff;
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.ak-section-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.ak-service-description {
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.ak-service-media {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Angebots-Testimonials */
.ak-testimonials {
  max-width: 72rem;
  margin: 0 auto;
  margin-top: 5rem;
  padding: 4rem 1.5rem;
}

.ak-testimonials-title {
  margin-bottom: 2rem;
}

.ak-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.ak-testimonial {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.ak-testimonial-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid #c4c4c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.ak-testimonial-name {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

/* ========================================
   12. Footer – Stil wie Startseite, Breite begrenzt
   ======================================== */
.site-footer {
  margin-top: 3rem;
  padding: 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  background: #f5f5f5;
  padding: 2.5rem 1.5rem;
  border-radius: 0 0 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #cccccc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-icon:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* ========================================
   13. Modal / Pop-up (Angebotsseite & Startseite)
   ======================================== */
.ak-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.ak-modal-overlay.is-visible {
  display: flex;
}

.ak-modal {
  background: #ffffff;
  border-radius: 1.5rem;
  max-width: 480px;
  width: 90%;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  position: relative;
  animation: ak-modal-in 0.18s ease-out;
}

@keyframes ak-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ak-modal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.ak-modal-intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Schließen-Icon im Modal */
.ak-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
}

/* Formular im Modal */
.ak-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.ak-form-row label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
}

.ak-form-row input,
.ak-form-row select,
.ak-form-row textarea {
  border-radius: 0.75rem;
  border: 1px solid #d4d4d4;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f9f9f9;
}

.ak-form-row input:focus,
.ak-form-row select:focus,
.ak-form-row textarea:focus {
  outline: none;
  border-color: #111;
  background: #ffffff;
}

.ak-modal-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #666;
}

/* ========================================
   14. Responsive Breakpoints
   ======================================== */
@media (max-width: 960px) {
  .ak-service-row {
    flex-direction: column;
    align-items: center;
  }

  .ak-testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero,
  .cta-section,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .about-image-placeholder {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-image-placeholder,
  .cta-image-placeholder {
    aspect-ratio: 3 / 2;
  }

  .ak-service-media .ak-image-placeholder {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 24px 16px 32px;
    border-radius: 0;
  }

  .hero-title {
    font-size: 26px;
  }

  .contact-form {
    padding: 16px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .ak-testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-image-placeholder,
  .cta-image-placeholder {
    aspect-ratio: 16 / 9;
  }

  .ak-service-media .ak-image-placeholder {
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .ak-modal {
    padding: 2rem 1.5rem 1.75rem;
  }
}
