/*
 * Zentrale Gestaltung der gesamten Website
 *
 * Orientierung zum Bearbeiten:
 * 1. Farben und Breiten stehen unter „Grundeinstellungen“.
 * 2. Danach folgen die Bereiche in derselben Reihenfolge wie im HTML.
 * 3. Ganz unten stehen die Anpassungen für Tablet und Smartphone.
 */

/* ---------- Schrift und Grundeinstellungen ---------- */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --color-background: #fff3e0;
  --color-surface: #ffe0b2;
  --color-highlight: #859602;
  --color-link: #f2b150;
  --color-text: #2f2a24;
  --color-muted: #6f6254;
  --color-white: #fffaf3;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.65;
}

main {
  overflow: hidden;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

/* ---------- Kopfbereich und Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-background);
  border-bottom: 1px solid rgba(47, 42, 36, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  gap: 24px;
}

.logo-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  margin-top: 1px;
}

.logo-icon picture,
.logo-icon img {
  display: block;
}

.logo-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo {
  min-width: 300px;
  padding: 14px 0;
  line-height: 1.16;
}

.logo-name {
  display: inline-block;
  color: var(--color-highlight);
  font-size: 1.6rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--color-muted);
  font-weight: 700;
}

.nav-links [aria-current="page"] {
  color: var(--color-link);
}

/* Der Menüknopf ist am Desktop ausgeblendet. */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--color-muted);
  background: rgba(255, 250, 243, 0.45);
  border: 1px solid rgba(47, 42, 36, 0.22);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

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

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

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

/* ---------- Seitenkopf und Überschriften ---------- */

.hero,
.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 88px;
  color: var(--color-muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: flex-start;
  gap: 56px;
}

.page-hero {
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-highlight);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-muted);
  line-height: 1.18;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.lead {
  max-width: 700px;
  margin: 0 0 34px;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ---------- Schaltflächen ---------- */

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 700;
  border: 1px solid var(--color-link);
  border-radius: 999px;
}

.button-primary {
  color: var(--color-white);
  background: var(--color-link);
}

.button-secondary {
  color: var(--color-link);
  background: transparent;
}

/* ---------- Portraitfotos ---------- */

.hero-image,
.placeholder-photo {
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 24px 80px rgba(47, 42, 36, 0.12);
}

.hero-image picture,
.placeholder-photo picture,
.hero-image img,
.placeholder-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image img,
.placeholder-photo img {
  object-fit: cover;
}

.hero-photo-1 {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4 / 5;
  justify-self: end;
  border-radius: 220px 220px 22px 22px;
}

.hero-photo-1 img {
  object-position: 60% 18%;
}

.about-photo-2 {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  clip-path: inset(0 round 32px);
}

/* Hält auch das gespiegelte Foto in Desktop-Browsern sicher abgerundet. */
.about-photo-2 picture,
.about-photo-2 img {
  border-radius: inherit;
  clip-path: inset(0 round 32px);
}

.about-photo-2 img {
  object-position: 50% 46%;
  transform: scaleX(-1);
}

/* ---------- Inhaltsbereiche ---------- */

.section {
  padding: 82px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-accent {
  background: var(--color-surface);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 56px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.card,
.contact-details {
  padding: 30px;
  background: var(--color-white);
  border-radius: 28px;
  box-shadow: 0 14px 50px rgba(47, 42, 36, 0.08);
}

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

.text-block p,
.card p,
.contact-details p {
  margin-top: 0;
  color: var(--color-muted);
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
}

.info-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(47, 42, 36, 0.12);
}

.offer-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

/* Behält den Abstand zwischen einer Liste und dem folgenden Textblock bei. */
.text-block .offer-list + p,
.contact-details .offer-list + p {
  margin-top: 1.5rem;
}

.quote-box {
  margin-top: 34px;
  padding: 30px;
  color: var(--color-muted);
  font-size: 1.15rem;
  border-left: 4px solid var(--color-link);
  border-radius: 0 24px 24px 0;
}

/* ---------- Impressum und Datenschutz ---------- */

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

.legal-content h2 {
  margin-top: 42px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--color-muted);
}

/* ---------- Fußbereich ---------- */

.site-footer {
  padding: 34px 24px;
  color: var(--color-white);
  background: var(--color-text);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 18px;
}

.site-footer a {
  color: var(--color-surface);
}

/* ---------- Responsive: kleinere Desktops ---------- */

@media (max-width: 1100px) {
  .nav {
    padding-right: 28px;
    padding-left: 28px;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.9rem;
  }

  .hero,
  .page-hero,
  .section-inner {
    max-width: 960px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 40px;
  }
}

/* ---------- Responsive: Tablet und iPad ---------- */

@media (max-width: 980px) {
  .nav {
    position: relative;
    align-items: flex-start;
    padding: 14px 20px;
  }

  .logo {
    min-width: 0;
    padding-right: 70px;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 12;
  }

  /* Das Menü wird durch js/main.js ein- und ausgeblendet. */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    width: min(310px, calc(100vw - 32px));
    padding: 14px;
    background: var(--color-background);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 18px 40px rgba(47, 42, 36, 0.16);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    white-space: normal;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    background: rgba(255, 183, 77, 0.22);
    text-decoration: none;
  }

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

  .hero,
  .page-hero {
    padding-top: 56px;
  }

  .hero-photo-1 {
    max-width: 420px;
    justify-self: center;
  }

  .hero-photo-1 img {
    object-position: 60% 16%;
  }

  .about-photo-2 {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-photo-2 img {
    object-position: 50% 45%;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

@media (max-width: 860px) {
  .hero-photo-1 {
    border-radius: 180px 180px 24px 24px;
  }
}

/* ---------- Responsive: Smartphone ---------- */

@media (max-width: 700px) {
  .nav {
    gap: 18px;
  }

  .logo-name {
    font-size: 1.5rem;
  }

  .logo-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    margin-top: 4px;
  }

  .logo-icon img {
    width: 42px;
    height: 42px;
  }

  .hero,
  .page-hero,
  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero,
  .page-hero {
    padding-top: 44px;
  }

  .hero {
    padding-bottom: 58px;
  }

  .hero-photo-1 {
    max-width: 360px;
    border-radius: 150px 150px 22px 22px;
  }

  .hero-photo-1 img {
    object-position: 62% 16%;
  }

  .about-photo-2 {
    max-width: 360px;
  }

  .about-photo-2 img {
    object-position: 50% 44%;
  }

  .cards {
    gap: 18px;
  }

  .card,
  .contact-details {
    padding: 24px;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding-right: 16px;
    padding-left: 16px;
  }

  /* Logo, Name und Menüknopf bleiben auch auf schmalen Geräten in einer Zeile. */
  .logo-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }

  .logo {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .menu-toggle {
    right: 16px;
  }

  /* Der vollständige Name bleibt auch auf sehr schmalen Geräten einzeilig. */
  .logo-name {
    font-size: clamp(1.0625rem, calc(4vw + 0.25rem), 1.375rem);
    white-space: nowrap;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    margin-top: 0;
  }

  .logo-icon img {
    width: 40px;
    height: 40px;
  }

  .hero,
  .page-hero,
  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-photo-1,
  .about-photo-2 {
    max-width: 320px;
  }

  .hero-photo-1 {
    border-radius: 130px 130px 20px 20px;
  }

  .hero-photo-1 img {
    object-position: 64% 16%;
  }

  .about-photo-2 img {
    object-position: 50% 43%;
  }

  .button-group {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
