/* ==========================================================
   PVPlanungshilfe
   layout.css – finale Header-Korrektur
   Vollständige Ersatzdatei
========================================================== */

/* =============================
   HEADER
============================= */

.site-header,
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(18, 59, 93, 0.08);
    box-shadow: 0 4px 18px rgba(18, 59, 93, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-container {
    width: min(1380px, 94%);
    min-height: 88px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(460px, 1fr) 320px;
    align-items: center;
    column-gap: 24px;
}

/* Marke links */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: 100%;
}

.logo .brand-mark {
    width: 68px;
    height: 68px;
    object-fit: contain;
    flex: 0 0 68px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.logo-title {
    color: var(--primary);
    font-family: "Manrope", sans-serif;
    font-size: 1.42rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-subtitle {
    margin-top: 5px;
    color: #71808c;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Navigation exakt mittig */

.main-navigation {
    min-width: 0;
    justify-self: center;
}

.main-navigation ul,
nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 2.4vw, 40px);
    margin: 0;
    padding: 0;
}

.main-navigation li,
nav li {
    flex: 0 0 auto;
}

.main-navigation a,
nav a {
    position: relative;
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.main-navigation a::after,
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--green);
    transition: width 0.25s ease;
}

.main-navigation a:hover,
nav a:hover {
    color: var(--green-dark);
}

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

/* Telefon + Button rechts */

.header-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.phone {
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
}

.header-contact .btn {
    padding: 14px 24px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
}

/* =============================
   HERO
============================= */

.hero {
    padding: 86px 0 108px;
    background:
        radial-gradient(circle at 18% 18%, rgba(99, 179, 46, 0.08), transparent 34%),
        linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
}

.hero-container {
    width: min(1240px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
    gap: 72px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    max-width: 620px;
    margin-bottom: 34px;
    font-size: 1.12rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 22px -18px -22px 18px;
    z-index: 0;
    border-radius: 30px;
    background: linear-gradient(
        135deg,
        rgba(18, 59, 93, 0.12),
        rgba(99, 179, 46, 0.08)
    );
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(18, 59, 93, 0.16);
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 42px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
}

.trust-item img {
    width: 22px;
    height: 22px;
}

/* =============================
   GRIDS
============================= */

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

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

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

/* =============================
   ÜBER MICH
============================= */

.about {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 88px;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: min(100%, 350px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 34%;
    border-radius: 26px;
    box-shadow: 0 22px 50px rgba(18, 59, 93, 0.16);
}

.about-content {
    max-width: 760px;
}

/* =============================
   FOOTER
============================= */

footer {
    margin-top: 90px;
    background: var(--primary);
    color: #fff;
}

.footer-container {
    width: min(1240px, 94%);
    margin: 0 auto;
    padding: 70px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr);
    gap: 64px;
}

.footer-container h3 {
    margin-bottom: 18px;
    color: #fff;
}

.footer-container p,
.footer-container span {
    color: #d9e4ec;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 24px;
}

.footer-brand img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand strong {
    display: block;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 1.55rem;
    line-height: 1.2;
}

.footer-brand span {
    display: block;
    margin-top: 5px;
    color: #d9e4ec;
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #d9e4ec;
    transition: color 0.25s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 5%;
    text-align: center;
    color: #c8d4dc;
    font-size: 0.92rem;
}

/* =============================
   ACCESSIBILITY
============================= */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
