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

:root {
  --clr-primary: #1a3a5c;
  --clr-primary-light: #2a5a8c;
  --clr-accent: #e8a838;
  --clr-bg: #ffffff;
  --clr-bg-alt: #f5f7fa;
  --clr-text: #2c3e50;
  --clr-text-light: #5a6f84;
  --clr-border: #e0e4e8;
  --clr-error: #d32f2f;
  --clr-success: #388e3c;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
  --radius: 12px;
  --max-w: 1100px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,168,56,.4); }
  50% { box-shadow: 0 0 0 12px rgba(232,168,56,0); }
}

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

body {
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--clr-primary-light);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--clr-accent);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--clr-border);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -.02em;
}

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

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--clr-text);
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--clr-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #0f2a44 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(232,168,56,.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(255,255,255,.03) 0%, transparent 50%);
  animation: fadeIn 2s ease-out;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.02em;
  animation: fadeInUp .8s ease-out;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 32px;
  animation: fadeInUp .8s ease-out .2s both;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--clr-accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn:hover {
  background: #d99a2e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,168,56,.3);
}

.hero .btn {
  animation: fadeInUp .8s ease-out .4s both;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--clr-bg-alt);
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -.02em;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--clr-accent);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* Projekt Cards */
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.projekt-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.projekt-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.projekt-card:hover::after {
  transform: scaleX(1);
}

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

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--clr-accent);
  animation: float 3s ease-in-out infinite;
}

.projekt-card:nth-child(2) .card-icon {
  animation-delay: .4s;
}

.projekt-card:nth-child(3) .card-icon {
  animation-delay: .8s;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  transition: transform .25s;
}

.projekt-card:hover .card-icon svg {
  transform: scale(1.15);
}

.projekt-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 12px;
}

.projekt-card p {
  font-size: .92rem;
  color: var(--clr-text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.btn-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-primary-light);
}

.btn-link:hover {
  color: var(--clr-accent);
}

/* About */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--clr-text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Mission & Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.mv-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow .3s, transform .3s;
}

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

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

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

.mv-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 16px;
}

.mv-card p {
  font-size: .95rem;
  color: var(--clr-text-light);
  line-height: 1.8;
}

/* Contact */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.kontakt-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 16px;
}

.kontakt-info address {
  font-style: normal;
  color: var(--clr-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.kontakt-info p {
  color: var(--clr-text-light);
}

.kontakt-map iframe {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--clr-primary);
  color: rgba(255,255,255,.7);
  padding: 40px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: .88rem;
}

.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
}

.footer-links a:hover {
  color: var(--clr-accent);
}

.footer-copy {
  text-align: center;
  font-size: .82rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* Impressum Page */
.page-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 32px;
  padding-top: 32px;
}

.page-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-top: 36px;
  margin-bottom: 12px;
  text-align: left;
}

.page-section p {
  color: var(--clr-text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-section ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--clr-text-light);
  margin-bottom: 12px;
}

.page-section ul li {
  margin-bottom: 4px;
  line-height: 1.7;
}

.page-section {
  padding-top: 100px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--clr-border);
    padding: 16px 24px;
    gap: 0;
  }

  .main-nav.open ul {
    display: flex;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: none;
  }

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

  .hero {
    padding: 120px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .section h2 {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .projekte-grid {
    grid-template-columns: 1fr;
  }

  .mv-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-section h1 {
    font-size: 1.7rem;
  }
}
