/*
Theme Name: Ihr-Anlage-Berater
Description: Schlichtes, responsives Theme für Ihr-Anlage-Berater.info
Version: 1.0
Requires at least: 6.0
Text Domain: ihr-anlage-berater
*/

:root {
  --primary: #1f3a5f;
  --deep-blue: #0b2545;
  --text: #222;
  --muted: #5b6573;
  --line: #d9dde3;
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--primary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.custom-logo {
  width: auto;
  max-width: min(320px, 48vw);
  max-height: 64px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
}

.main-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.hero {
  min-height: 510px;
  padding: 30px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
  background-color: var(--deep-blue);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 900px;
  margin: 10px auto 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}

.hero-content {
  width: 100%;
  margin-top: auto;
  padding-top: 35px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

.hero p {
  max-width: 760px;
  margin: 0 auto 22px;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--white);
  border-radius: 4px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  color: var(--primary);
  background: var(--white);
}

section.block {
  padding: 68px 20px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;
}

h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.intro {
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--muted);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card,
.person,
.contact-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.card p { color: var(--muted); font-size: .97rem; }

.card .icon {
  display: block;
  margin-bottom: 12px;
  font-size: 1.8rem;
  line-height: 1;
}

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.person-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.person-photo {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.person .role {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.person ul { margin: 8px 0 0 18px; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-box p { margin: 0 0 8px; }

.contact-box h3:not(:first-child) { margin-top: 18px; }

.legal-page {
  min-height: 100vh;
  padding: 60px 20px;
  color: var(--white);
  background: var(--deep-blue);
  font-size: .85rem;
}

.legal-page h2,
.legal-page h3,
.legal-page p,
.legal-page li,
.legal-page a { color: var(--white); }

.legal-page h3 { margin-top: 26px; }

.legal-page p,
.legal-page li { font-size: .85rem; }

.legal-page ul { margin: 6px 0 0 20px; }

.legal-page .back {
  display: inline-block;
  margin-bottom: 28px;
}

.site-footer {
  padding: 26px 20px;
  color: var(--white);
  background: var(--deep-blue);
  text-align: center;
  font-size: .85rem;
}

.site-footer p { margin: 0; }

.site-footer p + p { margin-top: 8px; }

.site-footer a {
  margin: 0 8px;
  color: var(--white);
  text-decoration: none;
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .nav-wrap { justify-content: center; }
  .main-nav ul { justify-content: center; gap: 8px 14px; }
  .hero { min-height: 470px; }
  section.block { padding: 50px 18px; }
  .team,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .person-profile { align-items: flex-start; }
  .person-photo { width: 88px; height: 88px; flex-basis: 88px; }
}