/* ==========================================================================
   heutger.net – Editorial Monochrome Design System
   Palette: Warm off-white (#faf8f5) + near-black (#0c0b09) + copper (#a85a28)
   Font: Satoshi Variable (self-hosted)
   ========================================================================== */

/* Font Face */
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* CSS Custom Properties */
:root {
  --color-background: #faf8f5;
  --color-foreground: #0c0b09;
  --color-copper: #a85a28;
  --color-copper-light: #c07c56;
  --color-warm-white: #faf8f5;
  --color-warm-gray: #edebe7;
  --color-charcoal: #171614;
  --color-near-black: #0c0b09;
  --color-muted: #4b4742;
  --color-border: #e5e2de;
  --font-sans: 'Satoshi', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-near-black);
  transition: color 0.2s;
}

.header-brand:hover {
  color: var(--color-copper);
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-desktop a:hover {
  color: var(--color-foreground);
}

.nav-desktop a.active {
  color: var(--color-copper);
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-copper);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .hamburger {
    display: none;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-foreground);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-warm-white);
  padding: 1rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-foreground);
}

.nav-mobile a.active {
  color: var(--color-copper);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   HERO SECTION (Startseite)
   ========================================================================== */
.hero {
  background-color: var(--color-near-black);
  color: var(--color-warm-white);
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

.hero-content {
  padding-bottom: 2rem;
}

.hero-tag {
  color: var(--color-copper);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--color-copper);
}

.hero-rule {
  width: 4rem;
  height: 2px;
  background-color: var(--color-copper);
  border: none;
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: rgba(250, 248, 245, 0.7);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 32rem;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 18rem;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%),
              linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%),
                      linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: source-in;
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0 8rem;
  }
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
  .hero-photo {
    justify-content: flex-end;
  }
  .hero-photo img {
    width: 22rem;
  }
}

@media (min-width: 1280px) {
  .hero-photo img {
    width: 26rem;
  }
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications-section {
  padding: 4rem 0;
  background-color: var(--color-background);
}

.section-tag {
  color: var(--color-copper);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.section-rule {
  width: 4rem;
  height: 2px;
  background-color: var(--color-copper);
  border: none;
  margin-bottom: 3rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cert-card {
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  border-color: rgba(184, 96, 44, 0.4);
}

.cert-card .cert-abbr {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-foreground);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.cert-card:hover .cert-abbr {
  color: var(--color-copper);
}

.cert-card .cert-rule {
  width: 2rem;
  height: 2px;
  background-color: rgba(184, 96, 44, 0.6);
  border: none;
  margin: 0.5rem 0 0.75rem;
}

.cert-card .cert-full {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .cert-card {
    padding: 1.5rem;
  }
  .cert-card .cert-abbr {
    font-size: 1.875rem;
  }
  .certifications-section {
    padding: 6rem 0;
  }
}

/* ==========================================================================
   NAVIGATION CARDS
   ========================================================================== */
.nav-cards-section {
  padding: 4rem 0;
  background-color: var(--color-warm-gray);
}

.nav-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.nav-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.nav-card:hover {
  border-color: rgba(184, 96, 44, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.nav-card .card-icon {
  color: var(--color-copper);
  margin-bottom: 1rem;
}

.nav-card .card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-card h3 {
  font-size: 1.5rem;
  color: var(--color-foreground);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.nav-card:hover h3 {
  color: var(--color-copper);
}

.nav-card .card-desc {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.nav-card .card-stat {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.nav-card .card-stat .stat-number {
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--color-copper);
}

.nav-card .card-stat .stat-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .nav-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .nav-cards-section {
    padding: 6rem 0;
  }
}

/* ==========================================================================
   PAGE HEADERS (Subpages)
   ========================================================================== */
.page-header {
  background-color: var(--color-near-black);
  color: var(--color-warm-white);
  padding: 4rem 0 5rem;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
}

.page-header .page-desc {
  color: rgba(250, 248, 245, 0.6);
  font-size: 1.125rem;
  margin-top: 1rem;
  max-width: 40rem;
}

/* ==========================================================================
   TIMELINE (Bildung & Beruf)
   ========================================================================== */
.timeline-section {
  padding: 4rem 0 6rem;
  background-color: var(--color-background);
}

.timeline-cluster {
  margin-bottom: 4rem;
}

.timeline-cluster:last-child {
  margin-bottom: 0;
}

.cluster-title {
  font-size: 1.5rem;
  color: var(--color-foreground);
  margin-bottom: 0.5rem;
}

.cluster-desc {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.cluster-rule {
  width: 4rem;
  height: 2px;
  background-color: var(--color-copper);
  border: none;
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-copper);
}

.timeline-entry {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-entry:last-child {
  padding-bottom: 0;
}



.timeline-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-copper);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-foreground);
}

.timeline-entry.current .timeline-title {
  font-size: 1.0625rem;
  font-weight: 600;
}

.timeline-subtitle {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.125rem;
}

@media (min-width: 768px) {
  .timeline-section {
    padding: 6rem 0;
  }
}

/* ==========================================================================
   BERUFUNG (Accreditations Grid)
   ========================================================================== */
.berufung-section {
  padding: 4rem 0 6rem;
  background-color: var(--color-background);
}

.berufung-cluster {
  margin-bottom: 4rem;
}

.berufung-cluster:last-child {
  margin-bottom: 0;
}

.berufung-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.berufung-card {
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.berufung-card:hover {
  border-color: rgba(184, 96, 44, 0.4);
}

.berufung-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.berufung-card .card-rule {
  width: 2.5rem;
  height: 2px;
  background-color: var(--color-copper);
  border: none;
  margin-bottom: 1rem;
}

.berufung-card ul {
  list-style: none;
  padding: 0;
}

.berufung-card li {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.berufung-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-copper);
}

@media (min-width: 768px) {
  .berufung-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .berufung-section {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .berufung-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   PROSE EDITORIAL (Impressum, Datenschutz)
   ========================================================================== */
.prose-editorial {
  max-width: 48rem;
}

.prose-editorial h2 {
  font-size: 1.75rem;
  color: var(--color-foreground);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose-editorial h3 {
  font-size: 1.375rem;
  color: var(--color-foreground);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-editorial h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-editorial p {
  color: #5a5550;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-editorial a {
  color: var(--color-copper);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose-editorial a:hover {
  color: var(--color-copper-light);
}

.prose-editorial ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.prose-editorial li {
  color: #5a5550;
  line-height: 1.75;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   IMPRESSUM SPECIFIC
   ========================================================================== */
.impressum-content {
  max-width: 48rem;
}

.impressum-block {
  margin-bottom: 2rem;
}

.impressum-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.impressum-rule {
  width: 2.5rem;
  height: 2px;
  background-color: var(--color-copper);
  border: none;
  margin-bottom: 1rem;
}

.impressum-block p {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.impressum-block .name {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-foreground);
}

/* Email link styling */
.email-link {
  color: var(--color-copper);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  cursor: pointer;
}

.email-link:hover {
  color: var(--color-copper-light);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.not-found {
  background-color: var(--color-near-black);
  color: var(--color-warm-white);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.not-found .error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-copper);
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.not-found p {
  color: rgba(250, 248, 245, 0.6);
  margin-bottom: 2rem;
}

.not-found .back-link {
  display: inline-block;
  border: 1px solid var(--color-copper);
  color: var(--color-copper);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}

.not-found .back-link:hover {
  background-color: var(--color-copper);
  color: var(--color-warm-white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-charcoal);
  color: rgba(250, 248, 245, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-inner p {
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(250, 248, 245, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-warm-white);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Utility Classes */
.container-narrow {
  max-width: 56rem;
}

.text-muted {
  color: var(--color-muted);
}

.mb-lg {
  margin-bottom: 2rem;
}

/* ===== Intern Pages: Gute Karten ===== */
.content { padding: 4rem 0 6rem; }
.content-wide { max-width: 56rem; }
.copper-line { width: 4rem; height: 2px; background: var(--color-copper); margin-top: 1rem; }
.page-header .label {
    color: var(--color-copper);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.page-header .subtitle {
    color: rgba(250,248,245,0.7);
    margin-top: 1rem;
    max-width: 42rem;
    font-size: 1.125rem;
}
.country-section { margin-bottom: 4rem; }
.country-section:last-child { margin-bottom: 0; }
.country-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.country-header h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.entry-card {
    border: 1px solid var(--color-border);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s;
}
.entry-card:hover { border-color: rgba(168,90,40,0.4); }
.entry-card .entry-inner { display: flex; align-items: flex-start; gap: 0.75rem; }
.entry-card .icon { color: var(--color-copper); flex-shrink: 0; margin-top: 2px; }
.entry-card .name { font-weight: 700; color: var(--color-foreground); }
.entry-card .desc { font-size: 0.875rem; color: var(--color-muted); margin-top: 0.25rem; line-height: 1.6; }
.draft-notice {
    color: var(--color-muted);
    font-style: italic;
    border-left: 2px solid var(--color-copper);
    padding-left: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 640px) {
    .content { padding: 3rem 0 4rem; }
}

/* ===== Standalone Pages: Shared Utilities ===== */
.content-narrow { max-width: 48rem; }

/* Prose (article/blog text) */
.prose p { color: var(--color-muted); line-height: 1.75; margin-bottom: 1rem; }
.prose h2 { font-size: 1.75rem; color: var(--color-foreground); margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.375rem; color: var(--color-foreground); margin-top: 2rem; margin-bottom: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose li { color: var(--color-muted); line-height: 1.75; margin-bottom: 0.25rem; }
.prose strong { color: var(--color-foreground); }

/* Link cards (linkliste) */
.link-card {
    display: block;
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    text-decoration: none;
    transition: border-color 0.3s;
    margin-bottom: 0.75rem;
}
.link-card:hover { border-color: rgba(168,90,40,0.4); }
.link-card .title { color: var(--color-foreground); font-weight: 500; transition: color 0.3s; }
.link-card:hover .title { color: var(--color-copper); }
.link-card .url { color: var(--color-muted); font-size: 0.875rem; margin-top: 0.25rem; word-break: break-all; }

/* Monitor frame (status page) */
.monitor-frame { border: 1px solid var(--color-border); padding: 1rem; }
.monitor-frame img { width: 100%; display: block; }

/* Table rows (rufnummern) */
.table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s;
}
.table-row:hover { background: rgba(240,237,232,0.5); }
.table-row .number { font-family: monospace; color: var(--color-foreground); font-size: 0.9rem; }
.table-row .provider { color: var(--color-muted); font-size: 0.875rem; }

/* Phone icon */
.phone-icon { color: var(--color-copper); flex-shrink: 0; margin-right: 0.75rem; }

/* Section title & group (rufnummern) */
.section-title { font-size: 1.25rem; font-weight: 700; color: var(--color-foreground); margin-bottom: 1rem; }
.section-group { margin-bottom: 2.5rem; }
.section-group .border-wrap { border: 1px solid var(--color-border); }

/* Draft callout (blog drafts) */
.draft-callout {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid rgba(168,90,40,0.3);
    background: rgba(168,90,40,0.05);
}
.draft-callout p { color: var(--color-muted); font-style: italic; font-size: 0.875rem; margin: 0; }

/* Responsive for table rows */
@media (max-width: 640px) {
    .table-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* Table row inner (flex container for icon + number) */
.table-row-inner { display: flex; align-items: center; }

/* Text alignment utility */
.text-center { text-align: center; }
