/* ==================================================
  styles.css — Hauptteil & Hero
================================================== */

/* ------------------------------
  CSS Variablen
------------------------------- */
:root {
  --max-width: 1100px;
  --gap: 1rem;
  --gold: #b98f33;
  --gold-light: #E5D5A7;
  --gold-dark: #805a04;
  --text: #2C2C2C;
  --text-muted: #666;
  --bg: #FFFFFF;
  --bg-soft: #F9F6F0;
  --border: #E5E0D5;
  --shadow-sm: 0 2px 4px rgba(198, 163, 85, 0.05);
  --shadow-md: 0 4px 8px rgba(198, 163, 85, 0.1);
  --transition: 0.3s ease-in-out;
}

/* ------------------------------
  Basis / Reset
------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ------------------------------
  Utilities & Layout
------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 1rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ==================================================
   CapricornDIY — hero.css
   Animationen & Styles für Hero-Bereich
================================================== */

/* ------------------------------
   Hero-Section Basis
------------------------------- */
.hero {
    background: linear-gradient(135deg, #f9f6f0 0%, #fff 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero .container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1.4; /* vorher 2 — nimmt jetzt weniger Platz ein */
    min-width: 260px;
}

.hero-left h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right, var(--gold-dark), var(--gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(198, 163, 85, 0.25);
}

.hero-left .lead {
    font-style: italic;
    color: #4d4d4d;
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

/* ------------------------------
   Hero-Buttons
------------------------------- */
.hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.8rem 1.5rem;
    margin-right: 1.5em;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Primärer Button */
.hero-buttons .btn.primary {
    background: linear-gradient(to right, var(--gold-dark), var(--gold));
    color: #fff;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-buttons .btn.primary:hover {
    box-shadow: 0 8px 20px rgba(198, 163, 85, 0.35);
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-3px) scale(1.08); }
    50% { transform: translateY(-5px) scale(1.12); }
    100% { transform: translateY(-3px) scale(1.08); }
}

/* Sekundärer Button */
.btn:not(.primary) {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--bg);
}

.btn:not(.primary)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.btn:not(.primary):hover {
    animation: pulse 1s infinite;
}

.btn:not(.primary):hover::after {
    width: 100%;
    left: 0;
}

/* ------------------------------
   Hero-Visual (Bilder)
------------------------------- */
.hero-right {
    flex: 1.2; /* vorher 1 — bekommt mehr Platz */
    display: flex;
    justify-content: center;
    gap: 1rem;
    min-width: 260px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    overflow: visible;
}

.hero-visual img {
    max-width: 140px;
    width: 100%;
    height: auto;
    transform: rotate(-1deg);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(198, 163, 85, 0.2);
    transition: transform 0.4s ease;
}

.hero-visual img:hover {
    transform: rotate(0deg) scale(1.12);
    box-shadow: 0 12px 24px rgba(198, 163, 85, 0.25);
}

/* ------------------------------
   Responsive Hero
------------------------------- */
@media (max-width: 900px) {
    .hero .container { gap: 2rem; }
    .hero-left h1 { font-size: 2rem; }
    .hero-left .lead { font-size: 1.1rem; }
    .hero-visual img { max-width: 150px; }
}

@media (max-width: 700px) {
    .hero {
        padding: 3rem 1rem;
    }
    .hero .container {
        flex-direction: column;
        align-items: center;
    }
    .hero-left h1 { font-size: 1.8rem; text-align: center; }
    .hero-left .lead { font-size: 1rem; text-align: center; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    .hero-visual { margin-top: 2rem; gap: 1rem; }
    .hero-visual img { max-width: 120px; }
}

@media (max-width: 500px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    .hero-buttons .btn {
        flex: unset;
        width: 100%;
    }
    .hero-visual img { max-width: 100px; }
}
