/* Ingenieurbüro Werner – Hauptstyles (Farben angepasst an Logo) */
:root {
  --color-bg: #f5f7f8;
  --color-surface: #ffffff;
  --color-primary: #5F8E9C;
  --color-primary-dark: #4a7280;
  --color-primary-light: #7aa5b3;
  --color-accent: #4a7280;
  --color-accent-soft: #5F8E9C;
  --color-text: #2d3748;
  --color-text-muted: #5a6c7d;
  --color-border: #dde5e8;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

/* Header & Navigation */
.site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.site-logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  vertical-align: middle;
}

/* Hamburger-Button (nur auf kleinen Screens sichtbar) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: var(--color-bg);
  border-color: var(--color-primary);
  outline: none;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-list a {
  font-weight: 500;
  color: var(--color-text);
  padding: 0.35em 0.1em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-list a:hover {
  color: var(--color-primary);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 2.5rem 1rem 3.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero .lead {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.btn--hero {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero .btn--outline {
  color: #fff;
  border-color: #fff;
}

.hero .btn--outline:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: #fff;
}

/* Sections */
.section {
  padding: 2rem 0;
}

.section--alt {
  background: var(--color-surface);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.3;
}

.section-lead {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.section-note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: rgba(95, 142, 156, 0.08);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--color-primary);
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  line-height: 1.5;
}

.card a {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.35em 0;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Coming Soon / Teaser */
.teaser-box {
  background: linear-gradient(135deg, #e8eef0 0%, #dde5e8 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
}

.teaser-box--narrow {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.teaser-box h3 {
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
}

.teaser-box p {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  line-height: 1.5;
}

/* Dokumentbereich */
.doc-card--coming {
  opacity: 0.85;
  border-style: dashed;
}
.doc-card--coming .badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.badge--muted {
  background: var(--color-border);
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  min-height: 48px;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 1.75rem 1rem;
  margin-top: 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-note {
  color: var(--color-text-muted);
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.site-footer a {
  color: rgba(255,255,255,0.9);
}

.site-footer a:hover {
  color: #fff;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Page content (inner pages) */
.page-header {
  background: var(--color-surface);
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  color: var(--color-primary);
  line-height: 1.25;
}

.page-content {
  padding: 1.5rem 0 2rem;
}

.page-lead {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.page-content h2 {
  font-size: clamp(1.2rem, 3vw, 1.35rem);
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.page-content li {
  margin-bottom: 0.35em;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========== Mobile / Kleine Bildschirme ========== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    order: 3;
    flex-basis: 100%;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 0.25rem;
  }

  .site-nav.is-open .nav-list {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list a {
    width: 100%;
    padding: 0.75rem 0.5rem;
    min-height: 48px;
  }

  .section {
    padding: 1.5rem 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .site-logo-img {
    height: 42px;
    max-width: 160px;
  }

  .hero {
    padding: 2rem 0.75rem 3rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .page-header {
    padding: 1.25rem 0.75rem;
  }

  .page-content {
    padding: 1.25rem 0 1.5rem;
  }

  .btn {
    min-height: 48px;
    padding: 0.65rem 1rem;
    width: 100%;
    max-width: 280px;
  }
}
