/* ==========================================================================
   Adrian Herrmann — Psychodynamische Organisationsentwicklung & Coaching
   ========================================================================== */

/* --- Fonts (self-hosted, variable) ------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/newsreader-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

/* --- Design tokens -------------------------------------------------------- */
:root {
  /* colors */
  --color-bg: #faf7f1;
  --color-bg-alt: #f0ebe0;
  --color-surface: #ffffff;
  --color-ink: #2a2b26;
  --color-ink-soft: #59584f;
  --color-ink-faint: #8a8879;
  --color-forest: #3a4a3d;
  --color-forest-deep: #263129;
  --color-forest-tint: #e7ede6;
  --color-terracotta: #b0623f;
  --color-terracotta-tint: #f3e2d6;
  --color-line: #e1d9c9;
  --color-cream: #fffdf9;

  /* type */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 2.75rem;
  --space-xl: clamp(3.5rem, 6vw, 5.5rem);
  --space-2xl: clamp(5rem, 9vw, 8rem);

  /* layout */
  --container-w: 1180px;
  --container-pad: clamp(1.25rem, 4.5vw, 3rem);
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(38, 49, 41, 0.06);
  --shadow-md: 0 12px 34px rgba(38, 49, 41, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* --- Base ---------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 560;
  color: var(--color-forest-deep);
  line-height: 1.18;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: manual;
}

p, li { overflow-wrap: break-word; }

h1 { font-size: clamp(2.35rem, 3.4vw + 1.2rem, 4rem); font-weight: 550; }
h2 { font-size: clamp(1.85rem, 1.8vw + 1.1rem, 2.55rem); }
h3 { font-size: clamp(1.2rem, 0.5vw + 1rem, 1.4rem); font-weight: 600; }

p { color: var(--color-ink-soft); }
.lede { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem); color: var(--color-ink-soft); }

a.link {
  color: var(--color-forest);
  text-decoration: underline;
  text-decoration-color: var(--color-terracotta);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a.link:hover { color: var(--color-terracotta); }

::selection { background: var(--color-terracotta-tint); color: var(--color-forest-deep); }

/* --- Layout helpers -------------------------------------------------------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-2xl); }
.section-alt { background: var(--color-bg-alt); }

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--color-terracotta);
  display: inline-block;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -50px;
  background: var(--color-forest-deep);
  color: var(--color-cream);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-forest);
  color: var(--color-cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-forest-deep); color: var(--color-cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--color-forest-deep);
  border-color: var(--color-line);
}
.btn-ghost:hover { border-color: var(--color-forest); background: var(--color-forest-tint); }
.btn-on-dark {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(255,255,255,0.45);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.12); border-color: var(--color-cream); }

/* --- Header / Nav ------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), padding-block 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-line);
  padding-block: 0.7rem;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-forest-deep);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

.nav-list {
  display: none;
  align-items: center;
  gap: var(--space-md);
}
.nav-list a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding-block: 0.3rem;
}
.nav-list a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--color-terracotta);
  transition: width 0.25s var(--ease);
}
.nav-list a:not(.btn):hover::after { width: 100%; }
.nav-list .btn { margin-left: var(--space-xs); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--color-forest-deep);
  display: block;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-cream);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  text-decoration: none;
  color: var(--color-forest-deep);
}

@media (min-width: 900px) {
  .nav-list { display: flex; }
  .nav-toggle { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 12vw, 10rem);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, var(--color-forest-tint) 0%, transparent 70%),
    radial-gradient(50% 45% at 0% 100%, var(--color-terracotta-tint) 0%, transparent 70%);
  z-index: -1;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-copy .eyebrow { }
.hero-copy h1 { margin-bottom: var(--space-sm); }
.hero-copy .lede { max-width: 46ch; margin-bottom: var(--space-md); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}
.hero-actions .btn-ghost { }

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-ink-faint);
}
.hero-location svg {
  width: 1.1em;
  height: 1.1em;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.hero-media { position: relative; justify-self: center; }
.hero-portrait {
  width: min(360px, 78vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-media-frame {
  position: relative;
  width: min(360px, 78vw);
}
.hero-media-frame::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--color-terracotta);
  border-radius: var(--radius-lg);
  z-index: -1;
}

@media (min-width: 860px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
  .hero-media { justify-self: end; }
}

/* --- Schwerpunkte cards ---------------------------------------------------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--color-forest-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; }

/* --- Topic sections (Psychodynamische OE / Coaching / Resilienz) --------- */
.topic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.topic-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.topic-media img { width: 100%; height: 100%; object-fit: cover; }
.topic-text .eyebrow { }
.topic-list {
  display: grid;
  gap: 0.65rem;
  margin-top: var(--space-md);
}
.topic-list li {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--color-ink);
}
.topic-list li svg {
  flex-shrink: 0;
  width: 1.1em; height: 1.1em;
  margin-top: 0.2em;
  color: var(--color-terracotta);
}

@media (min-width: 900px) {
  .topic { grid-template-columns: 1fr 1fr; }
  .topic.reverse .topic-media { order: 2; }
}

/* --- Über mich ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-2xl);
}
.about-media {
  position: relative;
}
.about-media img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.about-text .credentials {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}
.about-text .credentials strong { color: var(--color-forest-deep); font-weight: 600; }
.about-text .credentials-note {
  margin-top: 0.65rem;
  font-size: 0.83rem;
  color: var(--color-ink-faint);
  line-height: 1.5;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* --- Haltung (quote on image) --------------------------------------------- */
.haltung {
  position: relative;
  padding-block: var(--space-2xl);
  color: var(--color-cream);
  overflow: hidden;
}
.haltung-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.haltung::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 85% at 50% 46%, rgba(12, 16, 13, 0.82) 0%, rgba(12, 16, 13, 0.6) 50%, rgba(12, 16, 13, 0.28) 78%, rgba(12, 16, 13, 0.1) 100%),
    linear-gradient(180deg, rgba(38, 49, 41, 0.4), rgba(38, 49, 41, 0.46));
  z-index: -1;
}
.haltung blockquote {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem);
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6), 0 6px 26px rgba(8, 11, 9, 0.65);
}
.haltung blockquote p + p { margin-top: var(--space-sm); }
.haltung .haltung-signature {
  margin-top: var(--space-md);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(10, 14, 11, 0.6);
}

/* --- Leistungen ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.service-col {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.service-col h3 {
  color: var(--color-terracotta);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.service-col ul { display: grid; gap: 0.55rem; list-style: none; padding: 0; margin: 0; }
.service-col li {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--color-forest-deep);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-line);
}
.service-col li:last-child { border-bottom: none; padding-bottom: 0; }

@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Kontakt ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.contact-info { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-info .lede { margin-bottom: 0; }
.contact-detail-list { display: grid; gap: 0.85rem; }
.contact-detail-list a { text-decoration: none; }
.contact-detail-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.contact-detail-item svg {
  width: 1.2em; height: 1.2em;
  color: var(--color-terracotta);
  flex-shrink: 0;
  margin-top: 0.2em;
}
.contact-detail-item strong { display: block; color: var(--color-forest-deep); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.1rem; }

.contact-portrait {
  border-radius: var(--radius-md);
  aspect-ratio: 4/5;
  object-fit: cover;
  max-width: 220px;
  box-shadow: var(--shadow-sm);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: var(--space-sm); }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest-deep);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-bg);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-forest);
  background: var(--color-cream);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-consent { display: flex; gap: 0.65em; align-items: flex-start; font-size: 0.88rem; color: var(--color-ink-soft); margin-bottom: var(--space-sm); }
.form-consent input { margin-top: 0.3em; }
.form-consent a { text-decoration: underline; }

/* honeypot field, hidden from real users */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: var(--space-sm);
  padding: 0.85em 1.1em;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: var(--color-forest-tint); color: var(--color-forest-deep); }
.form-status.error { background: #fbeae5; color: #8a3b23; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--color-forest-deep);
  color: rgba(255,255,255,0.82);
  padding-block: var(--space-lg);
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-cream);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links a { text-decoration: none; font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--color-cream); }
.footer-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-md);
  width: 100%;
}

@media (min-width: 700px) {
  .footer-grid { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --- Overflow safety (grid/flex items must be allowed to shrink) ------------- */
.hero-copy,
.hero-media,
.topic-text,
.topic-media,
.about-text,
.about-media,
.contact-info,
.contact-grid > div,
.card,
.service-col {
  min-width: 0;
}

/* --- Scroll reveal ----------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Legal pages (Impressum / Datenschutz) ----------------------------------- */
.legal-page { padding-top: clamp(8rem, 12vw, 10.5rem); padding-bottom: var(--space-2xl); }
.legal-page h1 { margin-bottom: var(--space-sm); }
.legal-page .lede { margin-bottom: var(--space-lg); }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: var(--space-lg);
  margin-bottom: 0.6rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--color-ink-soft); font-size: 0.98rem; }
.legal-content ul { margin-top: 0.4rem; display: grid; gap: 0.35rem; padding-left: 1.2rem; list-style: disc; }
.legal-content a { color: var(--color-forest); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: var(--space-md);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-forest);
}

.placeholder {
  background: var(--color-terracotta-tint);
  color: #8a3b23;
  padding: 0.05em 0.4em;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
}
