/* ============================================
   IHAKOS – Stylesheet
   Design: Warm-neutral, refined, trustworthy
   Typografie: Georgia (Serif) + System Sans
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #F7F5F0;
  --color-surface: #FFFFFF;
  --color-surface-warm: #F0EDE6;
  --color-accent: #2A5E5E;       /* dunkles Petrol */
  --color-accent-light: #3A7A7A;
  --color-accent-muted: #D6E8E8;
  --color-dark: #1C1C1A;
  --color-text: #2E2D2B;
  --color-text-mid: #5A5856;
  --color-text-light: #8A8785;
  --color-border: #E2DED6;
  --color-gold: #B08D5B;

  --font-display: Georgia, 'Times New Roman', Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 4px rgba(28,28,26,0.06), 0 2px 8px rgba(28,28,26,0.04);
  --shadow-md: 0 4px 16px rgba(28,28,26,0.08), 0 2px 6px rgba(28,28,26,0.04);
  --shadow-lg: 0 8px 32px rgba(28,28,26,0.10);

  --max-width: 1100px;
  --section-pad: 96px;
  --section-pad-mobile: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42,94,94,0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent-muted);
  transform: translateY(-1px);
}

.btn-large {
  font-size: 1rem;
  padding: 15px 36px;
}

/* ---------- Section Tag ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-tag.light {
  color: var(--color-accent-muted);
}

/* ---------- Section Header ---------- */
.section-header {
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-dark);
}

.section {
  padding: var(--section-pad) 0;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 245, 240, 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: 68px;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav ul li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-mid);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.main-nav ul li a:hover {
  color: var(--color-dark);
  background-color: var(--color-surface-warm);
}

.nav-cta {
  margin-left: 16px;
  font-size: 0.85rem;
  padding: 9px 20px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 96px 0 80px;
  background-color: var(--color-bg);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 30%, rgba(42,94,94,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text);
  max-width: 560px;
  margin-bottom: 16px;
  line-height: 1.65;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Visual Emblem */
.hero-visual {
  flex-shrink: 0;
}

.hero-emblem {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  animation: spin-slow 40s linear infinite;
}

.emblem-ring::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(42,94,94,0.25);
}

.emblem-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.section-problem {
  background-color: var(--color-dark);
  color: #fff;
}

.section-problem .section-tag {
  color: var(--color-gold);
}

.problem-intro {
  margin-bottom: 56px;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff;
  max-width: 800px;
  padding-left: 24px;
  border-left: 3px solid var(--color-gold);
}

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

.problem-card {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: background 0.2s;
}

.problem-card:hover {
  background-color: rgba(255,255,255,0.08);
}

.problem-icon {
  color: var(--color-gold);
  margin-bottom: 16px;
  width: 32px;
  height: 32px;
}

.problem-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
}

/* ============================================
   NUTZEN SECTION
   ============================================ */
.section-nutzen {
  background-color: var(--color-surface);
}

.nutzen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.nutzen-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nutzen-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.nutzen-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  color: rgba(42,94,94,0.08);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
}

.nutzen-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.nutzen-card p {
  font-size: 0.925rem;
  color: var(--color-text-mid);
  line-height: 1.65;
}

/* ============================================
   LEISTUNGEN SECTION
   ============================================ */
.section-leistungen {
  background-color: var(--color-bg);
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.leistung-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.2s;
}

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

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

.leistung-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.leistung-card p {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.7;
}

.leistungen-cta {
  text-align: center;
  padding-top: 8px;
}

.leistungen-cta p {
  font-size: 1rem;
  color: var(--color-text-mid);
  margin-bottom: 20px;
}

/* ============================================
   ABLAUF SECTION
   ============================================ */
.section-ablauf {
  background-color: var(--color-surface);
}

.ablauf-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.ablauf-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s;
}

.ablauf-step:hover {
  border-color: var(--color-accent);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.65;
}

.ablauf-note {
  font-size: 0.95rem;
  color: var(--color-text-mid);
  text-align: center;
  padding: 20px 24px;
  background-color: var(--color-accent-muted);
  border-radius: var(--radius-md);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   ÜBER IHAKOS SECTION
   ============================================ */
.section-ueber {
  background-color: var(--color-bg);
}

.ueber-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ueber-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 24px;
  line-height: 1.25;
}

.ueber-text p {
  font-size: 0.975rem;
  color: var(--color-text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.ueber-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-mid);
  transition: border-color 0.2s, color 0.2s;
}

.value-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
  background-color: var(--color-dark);
  color: #fff;
}

.cta-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 24px;
}

.cta-box p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-email {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s, border-color 0.2s;
}

.cta-email:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: #161614;
  color: rgba(255,255,255,0.5);
  padding: 48px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 260px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in:nth-child(2) {
  animation-delay: 0.15s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE – Tablet
   ============================================ */
@media (max-width: 900px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    display: none;
  }

  .problem-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nutzen-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .leistungen-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ablauf-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ueber-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-copy {
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE – Mobile
   ============================================ */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 80%;
    max-width: 320px;
    background-color: var(--color-surface);
    box-shadow: -4px 0 24px rgba(28,28,26,0.12);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 32px 48px;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    gap: 0;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin-bottom: 24px;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    display: block;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    color: var(--color-text);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  /* Overlay backdrop */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background-color: rgba(28,28,26,0.4);
    z-index: 99;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .problem-headline {
    font-size: 1.2rem;
  }

  .cta-box h2 {
    font-size: 1.6rem;
  }

  .ueber-values {
    gap: 10px;
  }

  .value-pill {
    font-size: 0.82rem;
    padding: 8px 14px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .emblem-ring {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  /* No dark mode forced – design stays warm/light as intended */
}