/* ============================================================
   index.css – Page-specific styles for index.html
   ============================================================ */

section {
    padding: 100px 0;
    position: relative;
}

/* ── HERO ── */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s ease forwards 0.3s;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s ease forwards 0.6s;
}

.hero-content .btn {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s ease forwards 0.9s;
}

/* ── SECTION TITLES ── */
.section-title {
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: #fff;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ── REFERENZEN TEASER ── */
#referenzen-teaser {
    background-color: #000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 250px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.portfolio-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-title { font-size: 22px; margin-bottom: 8px; }
.portfolio-category { font-size: 15px; font-weight: 500; }

.referenzen-cta {
    text-align: center;
    margin-top: 20px;
}

/* ── ABOUT ── */
#about {
    background-color: #111;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.about-img {
    flex: 1;
    border: 5px solid #fff;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.about-img.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-img img {
    width: 100%;
    display: block;
}

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s ease 0.15s;
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.about-text a {
    color: #fff;
    text-decoration: underline;
}

/* ── FAQ ── */
#faq {
    background-color: #000;
}

.faq-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.faq-image {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.faq-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 5px solid #fff;
}

.faq-content {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s ease 0.15s;
}

.faq-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.faq-content .section-title {
    text-align: left;
}

.faq-content .section-title::after {
    left: 0;
    transform: none;
}

/* Index-specific FAQ styling (different border from main shared faq-item) */
#faq details.faq-item {
    border-bottom: 1px solid #333;
    padding: 0;
    margin-bottom: 0;
}

#faq details.faq-item summary {
    padding: 18px 40px 18px 0;
    display: block;
    position: relative;
}

#faq details.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    transition: transform 0.3s ease;
    flex-shrink: unset;
}

#faq details.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%);
}

.faq-answer {
    padding: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #ccc;
}

.faq-mini-cta {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid #333;
    background-color: #111;
}

.faq-mini-cta p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.faq-mini-cta span {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

/* ── KONTAKT CTA ── */
#kontakt-cta {
    background-color: #111;
}

.kontakt-cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.kontakt-cta-inner h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.kontakt-cta-inner p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

.kontakt-cta-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.kontakt-cta-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kontakt-cta-info-item i {
    font-size: 20px;
}

/* ── PARTNER / LOGOS + BEWERTUNGEN ── */
#partner {
    background-color: #fff;
    padding: 60px 0;
}

.logo-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    margin-bottom: 60px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

.logo-marquee-wrapper:hover .logo-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo-item img {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s, opacity 0.3s;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-bewertungen-title {
    text-align: center;
    color: #000;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.partner-google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.partner-google-badge .g-rating {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.partner-google-badge .g-stars {
    color: #fbbc04;
    font-size: 18px;
    letter-spacing: 2px;
}

.partner-google-badge .g-label {
    font-size: 13px;
    color: #888;
}

.bewertungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.bewertung-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.bewertung-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bewertung-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #dadada;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #555;
    font-size: 17px;
    flex-shrink: 0;
}

.bewertung-name {
    font-weight: 600;
    color: #000;
    font-size: 14px;
}

.bewertung-stars {
    color: #fbbc04;
    font-size: 13px;
    margin-top: 2px;
}

.bewertung-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

a.bewertung-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s, transform 0.2s;
}

a.bewertung-card-link:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.bewertung-source {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #f9a825;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── INDEX-SPECIFIC RESPONSIVE ── */
@media screen and (max-width: 768px) {
    section { padding: 60px 0; }
    .hero-content h1 { font-size: 34px; }
    .hero-content p { font-size: 16px; }
    .section-title { font-size: 28px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .about-content { flex-direction: column; }
    .about-img { border-width: 3px; }
    .faq-layout { flex-direction: column; }
    .faq-image { max-height: 260px; overflow: hidden; }
    .faq-content .section-title { font-size: 28px; }
    #faq details.faq-item summary { font-size: 15px; }
    .kontakt-cta-inner h2 { font-size: 28px; }
    .kontakt-cta-info { flex-direction: column; align-items: center; gap: 15px; }
    .footer-links { gap: 14px 24px; }
    .partner-bewertungen-title { font-size: 20px; }
    #partner { padding: 40px 0; }
    .logo-marquee-track { gap: 30px; }
    .partner-logo-item img { height: 36px; max-width: 120px; }
    .bewertung-card { padding: 16px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 26px; }
    .hero-content p { font-size: 15px; }
    .btn, .btn-solid { padding: 12px 22px; font-size: 14px; }
    .section-title { font-size: 24px; }
    .faq-mini-cta { padding: 20px; }
}
