/* ============================================
   S. Holland – Statische Website
   Farbschema: Business-Blau, seriös & modern
   ============================================ */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

a {
  color: #305699;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e3a6e;
}

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

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #305699;
  letter-spacing: -0.02em;
}

.logo span {
  color: #1e3a6e;
}

/* --- Navigation --- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #305699;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #305699;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #305699 0%, #1e3a6e 50%, #152d5a 100%);
  color: #fff;
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 4rem;
  font-weight: 300;
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: #305699;
}

.btn-primary:hover {
  background: #f0f4ff;
  color: #1e3a6e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Pillars (4 Säulen) --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pillar {
  text-align: center;
}

.pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  display: block;
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* --- Sections allgemein --- */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: #f8f9fc;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2rem;
  color: #1e3a6e;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-header p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Über mich --- */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-layout {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 1rem;
}

.about-portrait {
  flex-shrink: 0;
}

.portrait-img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(48, 86, 153, 0.15);
}

.about-text {
  text-align: left;
}

.about-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.branchen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.branche-tag {
  background: #edf1f7;
  color: #305699;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Leistungen (Services Grid) --- */
.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  perspective: 1000px;
  height: 280px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.service-card:hover .card-inner,
.service-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.card-front {
  background: #fff;
  border: 1px solid #e8ecf1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card-back {
  background: linear-gradient(135deg, #305699 0%, #1e3a6e 100%);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.card-back h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-back p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.card-front h3 {
  font-size: 1.15rem;
  color: #1e3a6e;
  font-weight: 600;
  text-align: center;
}

/* --- Kontakt Section --- */
.contact-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.contact-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecf1;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-item:hover {
  box-shadow: 0 8px 24px rgba(48, 86, 153, 0.08);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-item h3 {
  font-size: 1rem;
  color: #1e3a6e;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-item p,
.contact-item a {
  color: #555;
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: #305699;
}

/* --- Footer --- */
.site-footer {
  background: #1e2a3a;
  color: #aab4c2;
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: #aab4c2;
  font-size: 0.9rem;
}

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

.footer-copy {
  font-size: 0.85rem;
}

.footer-social a {
  color: #aab4c2;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

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

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.legal-page h1 {
  font-size: 2rem;
  color: #1e3a6e;
  margin-bottom: 2rem;
  font-weight: 700;
}

.legal-page h2 {
  font-size: 1.3rem;
  color: #305699;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.legal-page h3 {
  font-size: 1.1rem;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.legal-page p {
  margin-bottom: 1rem;
  color: #555;
}

.legal-page ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #555;
}

.legal-page li {
  margin-bottom: 0.3rem;
}

.legal-page a {
  word-break: break-all;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 8rem 1.5rem 4rem;
  }

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

  .hero .subtitle {
    font-size: 1.05rem;
  }

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

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

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

  .section {
    padding: 3.5rem 1.5rem;
  }

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

  .about-layout {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .portrait-img {
    width: 180px;
    height: 230px;
  }

  /* Mobile Navigation */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav a::after {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

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

  .header-inner {
    padding: 0 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
