/*
    ROGER AMGWERD WEBSITE
    Final CSS based on PDF-Design from 20. Juli 2025
    - Korrigiert und ergänzt von Gemini am 18. August 2025
*/

/* ===== 1. GRUNDLAGEN & VARIABLEN ===== */
:root {
    /* Farben aus PDF-Entwurf */
    --color-text: #000000;
    --color-background: #FFFFFF;
    --color-brand-orange: #D35400; /* Angepasstes Orange für den Titel */
    --color-footer-bg: #2C3E50; /* Dunkelblau für den Footer */
    --color-footer-text: #FFFFFF;
    --color-grey-border: #CCCCCC;

    /* Schriften (Annahme basierend auf Design) */
    --font-serif: 'Lora', 'Times New Roman', serif;
    --font-sans-serif: 'Lato', 'Helvetica', sans-serif;

    --content-width: 960px;
    --header-height: 90px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    padding-top: var(--header-height);
}

main {
    padding: 40px 20px;
}

.container {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans-serif);
    font-weight: bold;
    margin-top: 0;
}
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

a {
    color: var(--color-text);
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid var(--color-text);
    margin: 40px 0;
}

.image-placeholder {
    width: 100%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-sans-serif);
    background-color: #f0f0f0;
    color: #999;
    overflow: hidden;
}
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ===== 2. HEADER & NAVIGATION ===== */
header {
    background-color: var(--color-background);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--color-text);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    font-family: var(--font-sans-serif);
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--color-brand-orange);
    text-decoration: none;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

header nav a, .lang-switch a, .lang-switch span {
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    text-decoration: none;
}
.lang-switch .active {
    text-decoration: underline;
}


/* ===== 3. FOOTER ===== */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 40px;
    font-family: var(--font-sans-serif);
}
footer a {
    color: var(--color-footer-text);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
.footer-main-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    text-align: center;
}
.footer-main-links h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.footer-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    margin-bottom: 40px;
    font-size: 0.9rem;
}
.footer-legal {
    text-align: center;
    font-size: 0.9rem;
}


/* ===== 4. STARTSEITE (EBENE 1) ===== */
.index-main-grid {
    display: grid;
    grid-template-columns: 1fr; /* Nur noch eine Spalte */
    gap: 30px;
    align-items: start;
}

.index-main-grid .image-placeholder {
    min-height: 250px;
}

.index-image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.index-image-gallery .image-placeholder {
    min-height: 117px;
}

.index-dialog-box {
    margin-top: 20px;
}
.index-dialog-box h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: normal;
}

.index-divider {
    border-top: 1px solid var(--color-text);
    margin: 50px 0;
}

.index-bottom-teasers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.teaser-card .image-placeholder {
    margin-bottom: 15px;
}

.teaser-card h4 {
    font-size: 1.2rem;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.teaser-card h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}
.teaser-card p {
    font-size: 0.9rem;
}


/* ===== 5. ÜBER MICH (EBENE 2) ===== */
.ueber-mich-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.ueber-mich-top-grid .image-placeholder {
    max-height: 300px;
    max-width: 200px;
}

/* --- NEU INTEGRIERT: Flexbox-Layout für den Vorstellungstext --- */
.intro-text {
    margin-bottom: 25px;
}

.ueber-mich-flex-wrapper {
    display: flex;
    gap: 30px; /* Abstand an bestehendes Design angepasst */
}

.ueber-mich-flex-wrapper .left-column {
    flex: 1; /* Nimmt 1 Teil des verfügbaren Platzes ein */
    min-width: 200px;
}

.ueber-mich-flex-wrapper .left-column img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Abgerundete Ecken, falls gewünscht */
}

.ueber-mich-flex-wrapper .right-column {
    flex: 2; /* Nimmt 2 Teile des Platzes ein (ist also breiter) */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Abstand zwischen den Textblöcken */
}

.ueber-mich-flex-wrapper .text-block {
    display: flex;
    align-items: flex-start; /* Sorgt dafür, dass Bild und Text oben bündig sind */
    gap: 15px; /* Abstand zwischen Icon und Text */
}

.ueber-mich-flex-wrapper .inline-icon {
    width: 160px;
    height: auto;
	margin-bottom:50px;
}
/* --- ENDE NEUER ABSCHNITT --- */


.cv-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.cv-section h3 {
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.cv-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cv-section ul li {
    margin-bottom: 15px;
    line-height: 1.4;
}


/* ===== 8. KONTAKTSEITE ===== */
.page-kontakt .grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--color-grey-border);
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    background-color: var(--color-background);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-brand-orange);
    box-shadow: 0 0 5px rgba(211, 84, 0, 0.3);
}
.contact-form button {
    font-family: var(--font-sans-serif);
    font-size: 1rem;
    padding: 12px 25px;
    border: 1px solid var(--color-text);
    background-color: var(--color-text);
    color: var(--color-background);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.contact-form button:hover {
    background-color: var(--color-brand-orange);
    border-color: var(--color-brand-orange);
}


/* ===== 9. RESPONSIVE ANPASSUNGEN ===== */
@media (max-width: 992px) {
    .index-bottom-teasers,
    .cv-grid,
    .page-angebot .grid-2-col,
    .page-kontakt .grid-2-col {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
    }
    
    .ueber-mich-top-grid,
    .index-main-grid {
        grid-template-columns: 1fr;
    }

    /* NEU & HIER INTEGRIERT: Flexbox-Layout wird auf Tablets einspaltig */
    .ueber-mich-flex-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        align-items: center;
    }
    body {
        padding-top: 140px; /* Angepasst an variable Header-Höhe */
    }
    .footer-main-links,
    .footer-contact,
    .index-bottom-teasers,
    .cv-grid,
    .page-kontakt .grid-2-col { /* Kontaktformular auch auf Handy einspaltig */
        grid-template-columns: 1fr; /* 1 Spalte auf Handys */
    }
}

img.image-placeholder.klein
{
	max-width: 400px;	
	border: none;
}

img.image-placeholder.kleiner
{
	max-width: 200px;	
	margin: 5px;
	border: none;
}

.bilder-container{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

