/* Sonne Engineering – Finales Stylesheet (Wellen-Flagge DE/BY, ohne Orange, mit Cookie-Banner) */
:root {
  --primary: #0f2942;
  --primary-dark: #091a2b;
  --accent: #0066b3;
  --accent-hover: #004c87;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border: #cbd5e1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text-dark); line-height: 1.6; }
body { background-color: #ffffff; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* Header & Navigation */
.header { background: #ffffff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; padding-bottom: 0.75rem; flex-wrap: wrap; gap: 1rem; }
.logo-link { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--primary); }
.logo-img { height: 82px; width: auto; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.25rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.brand-sub { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.btn-nav { background: var(--primary); color: #ffffff !important; padding: 0.6rem 1.2rem; border-radius: 6px; }
.btn-nav:hover { background: var(--accent); }

/* Hero Section: Animierte Deutschland- & Bayern-Flagge */
.hero { position: relative; overflow: hidden; background-color: #10253f; color: #ffffff; padding: 4.5rem 0; text-align: center; border-bottom: 4px solid var(--primary); }
.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(10, 18, 30, 0.56) 0%, rgba(10, 18, 30, 0.62) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.15) 56%, rgba(0, 0, 0, 0) 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 33.33%, rgba(221, 0, 0, 0.75) 33.33%, rgba(221, 0, 0, 0.75) 66.66%, rgba(255, 206, 0, 0.78) 66.66%, rgba(255, 206, 0, 0.78) 100%),
    repeating-linear-gradient(60deg, rgba(0, 102, 179, 0.82) 0px, rgba(0, 102, 179, 0.82) 32px, rgba(255, 255, 255, 0.82) 32px, rgba(255, 255, 255, 0.82) 64px),
    repeating-linear-gradient(-60deg, rgba(0, 102, 179, 0.82) 0px, rgba(0, 102, 179, 0.82) 32px, rgba(255, 255, 255, 0.82) 32px, rgba(255, 255, 255, 0.82) 64px);
  background-size: 100% 100%, 100% 100%, 58% 100%, 100% 100%, 100% 100%;
  background-position: center, center, left top, right top, right top;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  animation: flagWave 12s ease-in-out infinite alternate;
}

@keyframes flagWave {
  0% { transform: scale(1.03) translate(0px, 0px) skewY(0deg); }
  50% { transform: scale(1.06) translate(-10px, 5px) skewY(-0.8deg); }
  100% { transform: scale(1.04) translate(8px, -4px) skewY(0.7deg); }
}

.hero .container { position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.88rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: 0.3px; }
.hero h1 { font-size: 2.3rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.75rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }

/* Dynamischer Slogan-Ticker */
.slogan-ticker { min-height: 2.4rem; margin-bottom: 1.1rem; display: flex; justify-content: center; align-items: center; }
.slogan-item { font-size: 1.25rem; font-weight: 700; color: #93c5fd; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); animation: fadeSlide 0.6s ease; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero p { max-width: 820px; margin: 0 auto 2rem auto; font-size: 1.08rem; color: #f1f5f9; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn-primary { display: inline-block; background: var(--primary); color: #ffffff; padding: 0.85rem 1.5rem; border-radius: 6px; text-decoration: none; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.25); cursor: pointer; font-size: 1rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-secondary { display: inline-block; background: rgba(255, 255, 255, 0.12); color: #ffffff; border: 2px solid #ffffff; padding: 0.8rem 1.4rem; border-radius: 6px; text-decoration: none; font-weight: 700; transition: background 0.2s, color 0.2s; }
.btn-secondary:hover { background: #ffffff; color: var(--primary); }

/* Sections & Cards */
.section { padding: 4rem 0; background: #ffffff; }
.section.bg-light { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 2.5rem auto; }
.section-header h2 { font-size: 1.9rem; color: var(--primary); margin-bottom: 0.6rem; }
.section-header p { color: var(--text-muted); font-size: 1.02rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }

.card { background: #ffffff; border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem; box-shadow: 0 4px 14px rgba(15, 41, 66, 0.05); display: flex; flex-direction: column; justify-content: space-between; }
.card h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 1rem; }
.card ul { padding-left: 1.2rem; margin-bottom: 1.25rem; color: var(--text-dark); font-size: 0.94rem; }
.card ul li { margin-bottom: 0.45rem; }

.badge-dev { display: inline-block; align-self: flex-start; background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.75rem; }
.badge-partner { display: inline-block; align-self: flex-start; background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.75rem; }

.gallery-img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; border: 1px solid #e2e8f0; }

/* Zertifikat Box */
.cert-box { background: #ffffff; border: 2px solid var(--primary); border-radius: 10px; padding: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cert-info h3 { color: var(--primary); font-size: 1.35rem; margin-bottom: 0.5rem; }
.cert-info p { color: var(--text-muted); max-width: 650px; }

/* Angebot & Kontakt Form */
.form-card { max-width: 780px; margin: 0 auto; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 2.25rem; box-shadow: 0 8px 24px rgba(15, 41, 66, 0.08); }
.form-header { display: flex; align-items: center; gap: 1.2rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.form-header img { height: 64px; width: auto; object-fit: contain; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.96rem; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.15); }

.angebot-nr-badge { background: #eff6ff; border: 1px dashed #0066b3; color: var(--primary); padding: 0.65rem 0.9rem; border-radius: 6px; font-size: 0.92rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.captcha-box { background: #f1f5f9; border: 1px solid #94a3b8; padding: 0.9rem 1rem; border-radius: 6px; margin-top: 0.3rem; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; margin-top: 0.6rem; margin-bottom: 1.25rem; }
.checkbox-group input { margin-top: 0.25rem; }
.full-width { width: 100%; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary-dark); color: #f8fafc; padding: 1rem 1.5rem; z-index: 999; border-top: 3px solid var(--accent); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25); }
.cookie-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie-text { font-size: 0.88rem; max-width: 760px; }
.cookie-text a { color: #93c5fd; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-cookie-accept { background: #0066b3; color: #ffffff; border: none; padding: 0.65rem 1.2rem; border-radius: 6px; font-weight: 700; cursor: pointer; }
.btn-cookie-essential { background: transparent; color: #cbd5e1; border: 1px solid #64748b; padding: 0.65rem 1rem; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* Footer */
.footer { background: var(--primary-dark); color: #cbd5e1; padding: 2rem 0; border-top: 4px solid var(--accent); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #ffffff; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; }