/* ============================================
   Praxis Malinowski – Apple-inspired Styling
   ============================================ */

:root {
  --bg: #fdf1e0;
  --bg-light: #f5e2c4;
  --bg-section: #ffffff;
  --text: #2d2015;
  --text-muted: #6b4f38;
  --text-soft: #9e7a5e;
  --accent: #b06d3e;
  --accent-dark: #8a5230;
  --border: #e8cda8;
  --card-bg: #fff8ee;

  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 10px 40px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);

  --container: 1240px;
  --container-narrow: 820px;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.nav-brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 60%;
}

@media (max-width: 768px) {
  .nav-brand { font-size: 13px; max-width: 70%; }
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.nav-links a:hover { opacity: 1; }
.nav-links a.active { font-weight: 500; opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(251, 250, 247, 0.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 18px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 18px; }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.text-center { text-align: center; }

@media (max-width: 768px) {
  .section { padding: 60px 0; }
}

/* ============================================
   TYPOGRAFIE
   ============================================ */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.display-large {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.display {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.muted { color: var(--text-soft); font-weight: 400; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text); }

.btn-large { padding: 18px 36px; font-size: 17px; }

.link-arrow {
  color: var(--accent);
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover { transform: translateX(4px); }

/* ============================================
   HERO (Startseite)
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251,250,247,0.4) 0%, rgba(251,250,247,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PAGE HERO (Unterseiten)
   ============================================ */
.page-hero {
  padding: 140px 0 80px;
  background: var(--bg);
}

@media (max-width: 768px) {
  .page-hero { padding: 80px 0 50px; }
}

/* ============================================
   INTRO
   ============================================ */
.section-intro { text-align: center; padding: 140px 0 80px; }

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-image img { transform: scale(1.04); }

.card-body { padding: 32px; }

.card-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ============================================
   FEATURE GROSSES BILD
   ============================================ */
.section-feature {
  padding: 120px 0;
  background: var(--bg-light);
}

.feature-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-feature { padding: 60px 0; }
}

.feature-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ============================================
   FULL IMAGE
   ============================================ */
.full-image {
  width: 100%;
  height: 70vh;
  max-height: 700px;
  overflow: hidden;
}

.full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   INFO GRID (Praxis-Seite)
   ============================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 1000px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

.info-block {
  padding: 32px 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.info-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 20px;
}

.info-icon svg { width: 100%; height: 100%; }

.info-block h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.info-block p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================
   DUO GRID
   ============================================ */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) { .duo-grid { grid-template-columns: 1fr; } }

.duo-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.duo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   ABOUT (Über mich)
   ============================================ */
.about-hero {
  padding: 100px 0 60px;
}

.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-hero { padding: 60px 0 30px; }
}

.about-portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.bio-block { padding: 40px 0; }

.bio-heading {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.bio-block p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* QUALIFIKATIONEN LISTE */
.quals {
  margin-top: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quals li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}

.qual-meta {
  color: var(--text-soft);
  font-size: 14px;
}

/* ============================================
   KONTAKT
   ============================================ */
.contact-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

@media (max-width: 900px) { .contact-tiles { grid-template-columns: 1fr; } }

.contact-tile {
  display: block;
  padding: 40px 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s var(--ease);
}

.contact-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.contact-icon svg { width: 100%; height: 100%; }

.contact-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.contact-note {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* FORMULAR */
.contact-form {
  margin-top: 48px;
  background: #fff;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) { .contact-form { padding: 28px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(90, 117, 96, 0.12);
}

.form-field textarea { resize: vertical; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}

.form-checkbox input { margin-top: 4px; flex-shrink: 0; }
.form-checkbox label { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.form-meta {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* ANFAHRT */
.anfahrt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) { .anfahrt-grid { grid-template-columns: 1fr; gap: 40px; } }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   CTA SEKTION
   ============================================ */
.section-cta {
  background: var(--bg-light);
}

.section-cta .lead { margin-bottom: 40px; }

/* ============================================
   LEGAL
   ============================================ */
.legal-content h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 32px 0 16px;
}

.legal-content h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: #fff;
  padding: 80px 0 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.footer p, .footer li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.footer ul li { margin-bottom: 6px; }

.footer a:hover { color: #fff; }

.footer-bottom {
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   ANIMATIONEN beim Scrollen
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Grüne Erfolgsmeldung nach dem Absenden */
.form-success {
  background: #edf7ed;
  border: 1px solid #a8d5a8;
  color: #2d6a2d;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Rote Fehlermeldung falls etwas schiefläuft */
.form-error {
  background: #fdf3f3;
  border: 1px solid #f0b8b8;
  color: #8b2020;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}