/*
Theme Name:     GeneratePress Child
Theme URI:      https://generatepress.com/
Description:    Child Theme for GeneratePress
Author:         VolMay
Author URI:     https://www.volmay.com/
Template:       generatepress
Version:        1.0.0
Text Domain:    generatepress-child
*/

/* Optional: eigene Styles hier */

/* =========================================================
   01 DESIGN TOKENS
   ========================================================= */

:root {
    /* Colors */
    --brand: #18324A;
    --brand-dark: #102536;

    --accent: #2F6F63;
    --accent-dark: #245A51;

    --text: #20282E;
    --text-muted: #667078;

    --surface: #FFFFFF;
    --surface-soft: #F8F7F3;
    --surface-alt: #F0ECE4;

    --border: #D9DDD9;

    /* Layout */
    --content-width: 1200px;
    --text-width: 760px;

    --page-padding: 32px;
    --grid-gap: 28px;

    /* Section spacing */
    --section-space: 88px;
    --section-space-small: 56px;
    --section-space-large: 104px;

    /* Radius */
    --radius-button: 10px;
    --radius-card: 18px;
    --radius-image: 20px;
    --radius-input: 8px;

    /* Shadows */
    --shadow-card: 0 4px 18px rgba(16, 37, 54, 0.05);
    --shadow-card-hover: 0 8px 24px rgba(16, 37, 54, 0.08);

    /* Motion */
    --transition-fast: 180ms ease;
}


/* =========================================================
   02 TYPOGRAPHY
   ========================================================= */

@font-face {
    font-family: "Manrope";
    src: url("assets/fonts/manrope/manrope-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

body {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--brand);
    font-weight: 700;
}

h1,
h2 {
    text-wrap: balance;
}

h1 {
    font-size: 52px;
    line-height: 1.10;
}

h2 {
    font-size: 40px;
    line-height: 1.15;
}

h3 {
    font-size: 26px;
    line-height: 1.25;
}

p {
    margin-top: 0;
}

a {
    color: var(--accent);
}

.section-header__intro,
.text-intro {
    font-size: 20px;
    line-height: 1.55;
    color: var(--text-muted);
}

.text-small {
    font-size: 15px;
    line-height: 1.5;
}

.eyebrow {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
}


/* =========================================================
   03 LAYOUT
   ========================================================= */

.section {
    padding-block: var(--section-space);
}

.section--small {
    padding-block: var(--section-space-small);
}

.section--large {
    padding-block: var(--section-space-large);
}

.section--soft {
    background: var(--surface-soft);
}

.section--alt {
    background: var(--surface-alt);
}

.section--dark {
    background: var(--brand);
    color: var(--surface);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
    color: var(--surface);
}

.section__inner {
    width: 100%;
    max-width: calc(var(--content-width) + (var(--page-padding) * 2));
    margin-inline: auto;
    padding-inline: var(--page-padding);
}

.content-width {
    width: 100%;
    max-width: var(--text-width);
}

.content-width--center {
    margin-inline: auto;
}


/* =========================================================
   04 SECTION HEADER
   ========================================================= */

.section-header {
    max-width: var(--text-width);
    margin-bottom: 40px;
}

.section-header--center {
    margin-inline: auto;
    margin-bottom: 40px;
    text-align: center;
}

.section-header__title {
    margin-bottom: 16px;
}

.section-header__intro {
    margin-bottom: 0;
}


/* =========================================================
   05 GRID
   ========================================================= */

.grid {
    display: grid;
    gap: var(--grid-gap);
}

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

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

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


/* =========================================================
   06 BUTTONS
   ========================================================= */

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: var(--radius-button);

    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}


/* Primary */

.site-button--primary {
    background: var(--accent);
    color: var(--surface);
}

.site-button--primary:hover {
    background: var(--accent-dark);
    color: var(--surface);
}


/* Secondary */

.site-button--secondary {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand);
}

.site-button--secondary:hover {
    background: var(--brand);
    color: var(--surface);
}


/* Text Link */

.site-button--text {
    min-height: auto;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--accent);

    box-shadow: none;
}

.site-button--text:hover {
    background: transparent;
    color: var(--accent-dark);

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Focus */

.site-button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}


/* =========================================================
   07 CARDS
   ========================================================= */

.card {
    display: flex;
    flex-direction: column;
    height: 100%;

    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);

    box-shadow: var(--shadow-card);
}

.card--soft {
    background: var(--surface-soft);
}

.card--highlight {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--surface);
}

.card--highlight h2,
.card--highlight h3,
.card--highlight h4 {
    color: var(--surface);
}

.card__media {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.card--reference .card__media {
    aspect-ratio: 4 / 3;
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
}

.card--compact .card__body {
    padding: 22px;
}

.card__icon {
    margin-bottom: 20px;
}

.card__title {
    margin-bottom: 12px;
}

.card__text {
    margin-bottom: 0;
    color: var(--text-muted);
}

.card--highlight .card__text {
    color: rgba(255, 255, 255, 0.82);
}

.card__meta {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

.card__actions {
    margin-top: auto;
    padding-top: 20px;
}


/* Hover nur für bewusst klickbare Cards */

.card--interactive {
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.card--interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}


/* =========================================================
   08 IMAGES
   ========================================================= */

.image-rounded {
    display: block;
    width: 100%;
    border-radius: var(--radius-image);
}

.image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   09 FORMS
   ========================================================= */

input,
select,
textarea {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: var(--radius-input);

    background: var(--surface);
    color: var(--text);

    font: inherit;
    font-size: 16px;
}

input,
select {
    min-height: 52px;
    padding-inline: 16px;
}

textarea {
    min-height: 140px;
    padding: 14px 16px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(47, 111, 99, 0.25);
    outline-offset: 1px;
    border-color: var(--accent);
}

label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--brand);
}


/* =========================================================
   10 UTILITIES
   ========================================================= */

.u-center {
    text-align: center;
}

.u-mx-auto {
    margin-inline: auto;
}

.u-mb-0 {
    margin-bottom: 0;
}

.u-mt-auto {
    margin-top: auto;
}

.u-full-width {
    width: 100%;
}


/* =========================================================
   11 TABLET
   ========================================================= */

@media (max-width: 1024px) {

    :root {
        --page-padding: 28px;

        --section-space: 68px;
        --section-space-small: 48px;
        --section-space-large: 80px;
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 34px;
    }

    h3 {
        font-size: 24px;
    }

    .section-header__intro,
    .text-intro {
        font-size: 19px;
    }

    .grid--4,
    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   12 MOBILE
   ========================================================= */

@media (max-width: 767px) {

    :root {
        --page-padding: 20px;

        --section-space: 48px;
        --section-space-small: 40px;
        --section-space-large: 56px;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 22px;
    }

    .section-header__intro,
    .text-intro {
        font-size: 18px;
    }

    .section-header,
    .section-header--center {
        margin-bottom: 32px;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .card__body {
        padding: 24px;
    }

    .button--mobile-full {
        width: 100%;
    }
}


/* =========================================================
   13 REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
	
	/* Card Badge */

.card__badge {
    display: inline-block;
    align-self: flex-start;

    margin-bottom: 12px;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.02em;

    color: var(--accent);
}


/* Card Details */

.card__details {
    margin: 20px 0 0;
    padding-left: 20px;

    color: var(--text);
}

.card__details li + li {
    margin-top: 8px;
}


/* Card Link */

.card__link {
    font-weight: 600;
}
	
/* =========================================================
   PATTERN: CONTENT CARDS GRID
   ========================================================= */

.content-cards__grid {
    align-items: stretch;
}
	
.button--text {
    min-height: auto;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--accent);

    text-decoration: none;
}

.button--text:hover {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
	

.card__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 48px;
    height: 48px;

    margin-bottom: 20px;
}

.card__icon-img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}	

/* =========================================================
   PATTERN: HERO
   ========================================================= */

.hero {
    background: var(--surface-soft);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;

    width: 100%;
    max-width: calc(var(--content-width) + (var(--page-padding) * 2));
    min-height: 570px;

    margin-inline: auto;
    padding-inline: var(--page-padding);
    padding-block: 64px;
}

.hero__content {
    max-width: 640px;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
}

.hero__title {
    margin-bottom: 20px;
}

.hero__intro {
    max-width: 620px;
    margin-bottom: 0;

    font-size: 20px;
    line-height: 1.55;
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 28px;
}

.hero__trust {
    margin: 18px 0 0;

    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

.hero__media {
    width: 100%;
}

.hero__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;
    border-radius: var(--radius-image);
}


/* =========================================================
   HERO – TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;

        min-height: 500px;
        padding-block: 56px;
    }

    .hero__intro {
        font-size: 19px;
    }
    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }	
	
}


/* =========================================================
   HERO – MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;

        min-height: 0;
        padding-block: 56px;
    }

    .hero__content {
        max-width: none;
    }
	
	 h1 {
        font-size: 34px;
    }

    .hero__intro {
        font-size: 18px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .site-button {
        width: 100%;
    }

    .hero__image {
        aspect-ratio: 3 / 2;
    }
}
	