/* Seelensache SPO – gemeinsames Stylesheet */

:root {
  --bg: #fbfaf6;
  --card: #f3f0e7;
  --text: #2d3e35;
  --heading: #2d3e35;
  --muted: #55554f;
  --accent: #8b6555;
  --accent-hover: #74503f;
  --line: #e4e0d6;

  --font-heading: "Gilda Display", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --text-size: 1.0625rem;
  --text-leading: 1.7;
  --title-section: clamp(2rem, 4.2vw, 2.75rem);
  --title-feature: clamp(2.4rem, 5vw, 3.6rem);

  --container: 1100px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-size);
  line-height: var(--text-leading);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }
h2 { font-size: var(--title-section); line-height: 1.18; }
h3 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); line-height: 1.25; }

p {
  margin: 0 0 1.1em;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 4px;
  padding-bottom: 4px;
  max-width: 1200px;
}

.logo img {
  width: 170px;
}

.main-nav ul {
  display: flex;
  gap: clamp(20px, 5vw, 60px);
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-right: 170px; /* gleicht die Logobreite aus, damit die Navigation zentriert sitzt */
}

.main-nav a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: clamp(220px, 32vw, 380px);
  background: #dcd6c8 url("../assets/img/hero-duenen.jpeg") center 78% / cover no-repeat;
}

.hero .container {
  max-width: 1200px;
}

.hero h1 {
  padding-top: clamp(20px, 3vw, 36px);
  padding-left: clamp(0px, 6vw, 70px);
}

/* ---------- Sektionen ---------- */

.section {
  padding: clamp(32px, 4vw, 48px) 0;
}

.intro {
  text-align: center;
  max-width: 920px;
}

.intro p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}

.split--reverse .split__media {
  order: -1;
}

.split__text {
  font-size: var(--text-size);
}

.split__text h2 {
  margin-bottom: 0.7em;
}

.split__media {
  margin: 0;
}

.split__media img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
}

.split--reverse .split__media img {
  aspect-ratio: 0.97;
}

.split--reverse .split__text {
  padding-top: 12px;
}

/* ---------- Karten ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 1150px;
}

.card {
  background: var(--card);
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 28px);
  font-size: 1rem;
}

.card h3 {
  margin-bottom: 0.7em;
}

/* ---------- Call to Action ---------- */

.section--tight-top {
  padding-top: 0;
}

.cta {
  text-align: center;
  max-width: 640px;
}

.cta p {
  margin-bottom: 1.4em;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  padding: 0.6em 1.8em;
  transition: background 0.2s;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1150px;
}

.site-footer .logo img {
  width: 150px;
}

.site-footer__claim {
  font-size: 0.875rem;
  max-width: 260px;
  margin: 0;
}

.site-footer__contact {
  justify-self: end;
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer__contact-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 0.3em;
}

.site-footer__contact a {
  text-decoration: none;
}

.site-footer__contact a:hover {
  text-decoration: underline;
}

.site-footer__legal {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.875rem;
}

.site-footer__legal a {
  text-decoration: none;
  color: var(--muted);
}

.site-footer__legal a:hover,
.site-footer__legal a[aria-current="page"] {
  text-decoration: underline;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.legal {
  overflow-wrap: anywhere;
  max-width: 760px;
  font-size: 0.97rem;
}

.legal h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 0.8em;
}

.legal h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-top: 1.8em;
}

.legal h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 1.4em 0 0.4em;
}

.legal ul {
  padding-left: 1.2em;
  margin: 0 0 1.1em;
}

.legal li {
  margin-bottom: 0.3em;
}

.legal address {
  font-style: normal;
  margin-bottom: 1.1em;
}

/* Platzhalter, die vor Veröffentlichung ersetzt werden müssen */
.todo {
  background: #f6e3a8;
  padding: 0 0.25em;
}

/* ---------- Seitentitel ohne Bild (Über mich) ---------- */

.page-title {
  text-align: center;
  padding: clamp(40px, 7vw, 90px) 0 clamp(8px, 2vw, 24px);
}

.page-title h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin: 0;
}

/* ---------- Über mich ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  max-width: 1200px;
}

.about__photo {
  margin: 0;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.about__text {
  font-size: 1.1rem;
  line-height: 1.75;
}

.about__name {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 0.25em;
}

.about__role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.8em;
}

/* ---------- Textabschnitte (Über mich) ---------- */

.section--band {
  background: var(--card);
  padding: clamp(48px, 7vw, 90px) 0;
}

.section--spacious {
  padding: clamp(56px, 9vw, 120px) 0;
}

.prose {
  max-width: 780px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.prose__title {
  font-size: var(--title-feature);
  margin-bottom: 0.8em;
}

.prose h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 1.6em 0 0.6em;
}

.prose h3:first-of-type {
  margin-top: 0;
}

.background {
  max-width: 1200px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.background p {
  max-width: 65ch;
}

/* ---------- Startseite ---------- */

.home-hero {
  background: #6f8fc4 url("../assets/img/hero-duenen.jpeg") center 70% / cover no-repeat;
  min-height: clamp(520px, 62vw, 730px);
  padding: clamp(48px, 7vw, 90px) 0;
  color: #1f2a24;
}

.home-hero .container {
  max-width: 1200px;
  padding-left: clamp(16px, 6vw, 82px);
}

.home-hero__eyebrow {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 0.6em;
}

.home-hero h1 {
  color: inherit;
  font-size: clamp(3rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  max-width: 15ch;
  margin-bottom: 0.45em;
}

.home-hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 400;
  margin-bottom: 1.8em;
}

.button--large {
  font-size: 1rem;
  padding: 0.75em 2.1em;
}

.intro.home-intro p {
  max-width: 560px;
  font-size: 1.15rem;
  line-height: 1.85;
}

.home-prose {
  max-width: 640px;
}

.home-prose h2 {
  font-size: var(--title-section);
}

.home-prose p + h2 {
  margin-top: 1.4em;
}

.steps__title {
  text-align: center;
  font-size: var(--title-feature);
  margin-bottom: 0.9em;
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1220px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.6vw, 34px);
}

.step__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.4vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6em;
}

.step {
  position: relative;
  transition: background 0.2s;
}

.step:hover {
  background: #ebe6db;
}

.step__link {
  text-decoration: none;
}

/* Die ganze Kachel ist anklickbar */
.step__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

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

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

.intro-person {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 7vw, 100px);
  align-items: center;
  max-width: 1220px;
}

.intro-person__text h2 {
  font-size: var(--title-feature);
  margin-bottom: 0.7em;
}

.intro-person__text p {
  font-size: var(--text-size);
  line-height: var(--text-leading);
}

.intro-person__text .button {
  margin-top: 1.4em;
  max-width: 200px;
  text-align: center;
  line-height: 1.4;
}

.intro-person__photo {
  margin: 0;
}

.intro-person__photo img {
  width: 100%;
  aspect-ratio: 575 / 680;
  object-fit: cover;
}

/* ---------- Mobil ---------- */

@media (max-width: 760px) {
  .site-header .container {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
  }

  .main-nav {
    margin-right: 0;
    max-width: 100%;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    column-gap: clamp(16px, 5vw, 38px);
    row-gap: 0;
  }

  .home-hero__lead {
    max-width: 34ch;
  }

  .split,
  .cards,
  .about,
  .steps,
  .intro-person {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__contact {
    justify-self: center;
  }
}

/* Tastaturbedienung und reduzierte Bewegung */
a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 0.6em 1em;
  background: var(--bg);
  color: var(--text);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; }
}
