/* Hegauwerk – minimalistisch, ruhig, seriös (nach Referenz-Design) */

:root {
  --bg: #faf9f6;
  --bg-card: #fff;
  --text: #2c3e50;
  --text-muted: #5a6c7d;
  --accent: #2c3e50;
  --accent-light: #3d566e;
  --accent-blue: #2c3e50;
  --card-header-blue: #2c3e50;
  --card-header-green: #2d5a3d;
  --card-header-brown: #5c4033;
  --border: #e8e6e3;
  --footer-bg: #f2f1ee;
  --max-width: 1100px;
  --space: 1.5rem;
  --space-lg: 3rem;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.hero h1,
.hero .serif {
  font-family: Georgia, "Times New Roman", Times, serif;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.logo {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--text);
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--accent);
}

/* Mobile menu toggle (nur sichtbar auf kleinen Screens) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
}

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space);
  }

  .nav[aria-hidden="true"] {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--accent) url("../assets/hero.png") center/cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 40, 58, 0.5);
}

.hero .wrapper {
  position: relative;
  z-index: 1;
  padding: var(--space-lg) var(--space);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero .subtitle {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.95;
  letter-spacing: 0.01em;
}

.hero .lead {
  max-width: 36em;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
  text-decoration: none;
}

/* Sections */
.section {
  padding: var(--space-lg) 0;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

/* Projektkarten (farbiger Kopf + Icon wie Referenz) */
.projekt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space);
}

.projekt-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.projekt-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.projekt-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.projekt-card-header--blue { background: var(--card-header-blue); }
.projekt-card-header--green { background: var(--card-header-green); }
.projekt-card-header--brown { background: var(--card-header-brown); }

.projekt-card-header .card-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0.95;
}

.projekt-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.projekt-card-body p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.projekt-card-body p.projekt-zusatz {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.projekt-card-body .btn {
  margin-top: 0.25rem;
}

/* Was wir machen – 3 Spalten mit Icons (Kartenstil) */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space);
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.feature:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent-blue);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Über-uns-Kurz + Transparenz */
.intro-text {
  max-width: 42em;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.transparenz-box {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: var(--space-lg);
  padding: var(--space-lg) 0 var(--space);
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

/* Innenseiten (ohne Hero) */
.page-header {
  padding: var(--space-lg) 0 var(--space);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.page-content {
  padding: var(--space-lg) 0;
}

.page-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* Listen / Bulletpoints */
.bullet-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

/* Kontakt */
.contact-email {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.address-block {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Formular (optional) */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 28rem;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
}
.form-message--success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: var(--text);
}
.form-message--error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: var(--text);
}
.form-group--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Impressum / Datenschutz */
.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.legal-section p,
.legal-section ul {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-section ul {
  padding-left: 1.25rem;
}

/* CLS-Vermeidung: feste Höhe für Hero-Fallback falls Bild fehlt */
.hero {
  min-height: 70vh;
}

/* Focus für Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Cookie-Hinweis-Modal (zum Seiten-Design passend) */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(44, 62, 80, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-overlay[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cookie-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  max-width: 520px;
  width: 100%;
  padding: 1.75rem 1.5rem;
}

.cookie-modal h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.cookie-modal .cookie-text {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cookie-buttons .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.cookie-buttons .btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.cookie-buttons .btn-outline:hover {
  background: var(--footer-bg);
  border-color: var(--accent-light);
  color: var(--accent);
}

.cookie-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.cookie-footer a {
  color: var(--text-muted);
}

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

.cookie-footer span {
  color: var(--border);
  margin: 0 0.5rem;
}

/* Cookie-Einstellungen Panel */
.cookie-settings {
  display: none;
  margin-bottom: 1.25rem;
}
.cookie-settings[aria-hidden="false"] {
  display: block;
}
.cookie-main[aria-hidden="true"] {
  display: none;
}
.cookie-settings-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.cookie-settings-option {
  margin: 1rem 0;
}
.cookie-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}
.cookie-checkbox-label input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.cookie-settings-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.cookie-settings-buttons .btn {
  min-width: 120px;
}
