/* ---------------------------------------
   Daniel Stein – Finanzexperte
   Farben: Tiefblau (Vertrauen), Cremeweiß, dezent Gold
   --------------------------------------- */
:root {
  --color-bg: #f8f6f2;
  --color-bg-alt: #efece6;
  --color-primary: #1a2d4a;
  --color-primary-light: #2d4563;
  --color-accent: #b8860b;
  --color-accent-soft: #d4a84b;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --container: min(90vw, 960px);
  --space: 1.5rem;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}


/* Welcome-Splash (beim ersten Laden) */
.welcome-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  padding: 2rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.welcome-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-splash-text {
  max-width: 32rem;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.55;
  color: #fff;
  text-align: center;
}

.welcome-splash-line {
  display: block;
  margin-bottom: 0.9rem;
  opacity: 0;
  transform: translateY(16px);
  animation: welcome-fade-in 1.4s ease forwards;
}

.welcome-splash-line:nth-child(1) { animation-delay: 0.5s; }
.welcome-splash-line:nth-child(2) { animation-delay: 1.2s; }
.welcome-splash-line:nth-child(3) { animation-delay: 2s; }

.welcome-splash-punch {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-accent-soft);
}

@keyframes welcome-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

@media (max-width: 480px) {
  :root {
    --space: 1rem;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.95);
  border-bottom: 1px solid rgba(26, 45, 74, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 100px;
  max-width: min(180px, 45vw);
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  margin: -4px 0 -4px 0;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

/* Hero */
.hero {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
}

.hero-label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}

.hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  opacity: 0.9;
}

.hero-text {
  margin: 0 0 2rem;
  max-width: 42ch;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

.hero-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
}

.badge-text {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.badge-desc {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background: var(--color-bg-alt);
}

.section-title {
  margin: 0 0 2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-primary);
}

.subsection-title {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-primary);
}

/* Über mich */
.ueber-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .ueber-grid {
    grid-template-columns: auto 1fr;
    max-width: none;
  }
}

.ueber-photo {
  order: -1;
}

@media (min-width: 640px) {
  .ueber-photo {
    order: 0;
  }
}

.ueber-img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ueber-intro {
  min-width: 0;
}

.ueber-lead {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.ueber-intro p {
  margin: 0 0 1rem;
}

.ueber-intro p:last-child {
  margin-bottom: 0;
}

/* Werte */
.werte-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .werte-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.werte-item {
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 45, 74, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.werte-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: 0.85rem;
}

.werte-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.werte-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Karriere / Timeline */
.timeline {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  border-left: 2px solid var(--color-accent);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.timeline-item-current::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3);
}

.timeline-year {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.timeline-role {
  display: block;
  color: var(--color-text);
}

.qualis-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.qualis-list li {
  margin-bottom: 0.5rem;
}

/* Dienstleistungen */
.dienst-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .dienst-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dienst-card {
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 45, 74, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.dienst-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.dienst-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.dienst-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Rezensionen */
.rezensionen-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .rezensionen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .rezensionen-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rezension-card {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 45, 74, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rezension-stars {
  color: var(--color-accent);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.rezension-text {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text);
  font-style: normal;
}

.rezension-author {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  font-style: normal;
}

/* Kontakt */
.section-kontakt {
  text-align: center;
}

.kontakt-text {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.kontakt-email {
  margin: 0;
}

.kontakt-email a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.kontakt-email a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 1rem;
}

.footer-place {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-btz {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-btz a {
  color: var(--color-accent-soft);
  text-decoration: underline;
}

.footer-btz a:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 700px) {
  .site-header .container {
    flex-wrap: wrap;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .logo-img {
    height: 72px;
    max-width: min(160px, 50vw);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.5rem 0;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(26, 45, 74, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 0.85rem 1rem;
    min-height: 48px;
    line-height: 1.4;
    -webkit-tap-highlight-color: rgba(26, 45, 74, 0.08);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-badge {
    padding: 0.75rem 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 5vw, 1.85rem);
  }

  .werte-item {
    padding: 1.25rem;
  }

  .werte-item h3 {
    font-size: 1.1rem;
  }

  .dienst-card {
    padding: 1.5rem 1.25rem;
  }

  .dienst-card h3 {
    font-size: 1.15rem;
  }

  .rezension-card {
    padding: 1.4rem 1.25rem;
  }

  .welcome-splash {
    padding: 1.5rem 1rem;
  }

  .welcome-splash-text {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
  }

  .kontakt-email a {
    display: inline-block;
    padding: 0.25em 0;
    font-size: 1.1rem;
    word-break: break-all;
    -webkit-tap-highlight-color: rgba(184, 134, 11, 0.2);
  }

  .footer-btz {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .footer-btz a {
    display: inline-block;
    margin-top: 0.25em;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0 2.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .ueber-img {
    width: 140px;
    height: 140px;
  }
}
