/*
   Dr. Ruth Lachmuth Website Styles
   Color Scheme: White / Beige / Dark Blue
*/

/* Font Face Declaration */
@font-face {
    font-family: 'Arsenal';
    src: url('./Arsenal-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Variables */
:root {
    --white: #ffffff;
    --off-white: #f8f8f8;
    --beige: #F4E8E3;
    --light-beige: #FAF2EF;
    --dark-beige: #E5D5CE;
    --dark-blue: #2A4359;
    --medium-blue: #3A5A76;
    --light-blue: #5D7D99;
    --text-dark: #2A4359;
    --text-light: #ffffff;
    --max-width: 1200px;
    --section-padding: 80px 0;
    --message-green: #5b9b69;
    --message-red: #e37171;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arsenal', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

section h2 {
    position: relative;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--dark-beige);
    display: inline-block;
}

section.hero h2 {
    border-bottom: none;
}

/* Center the h2 elements that need to be centered */
.curriculum h2, .services h2, .contact h2, .imprint h2 {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--medium-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-blue);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-padding);
}

.btn {
    display: inline-block;
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--medium-blue);
}

/* Header Styles */
header {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 15px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo h1 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 10px 0 0 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.2rem;
}

nav ul li a:hover {
    color: var(--dark-beige);
}

/* Hero Section */
.hero {
    background-image: url('./bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 210px; /* Extra padding to account for fixed header */
    height: 600px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
    width: fit-content;
}


.hero-text {
    background-color: rgba(244, 232, 227, 0.8); /* Semi-transparent beige background */
    padding: 30px;
    border-radius: 8px;
    text-align: right;
}

.hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 0 0 auto;
}

/* Curriculum Section */
.curriculum {
    background-color: var(--light-beige);
}

.curriculum h2 {
    text-align: center;
    margin-bottom: 40px;
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.cv-content p {
    text-align: justify;
}


.year {
    font-weight: bold;
    color: var(--medium-blue);
    margin-bottom: 5px;
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--beige);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card p {
    text-align: justify;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

#contact_message {
    color: var(--message-green);
    display: none;
}

/* Imprint Section */
.imprint {
    background-color: var(--light-beige);
}

.imprint h2 {
    text-align: center;
    margin-bottom: 40px;
}

.imprint-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.imprint-content p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links ul li {
    margin: 0 15px 10px;
}

.footer-links ul li a {
    color: var(--text-light);
}

.footer-links ul li a:hover {
    color: var(--dark-beige);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ob-em span {
    display: none;
}

/* Responsive Styles */
@media (min-width: 900px) {
    .hero-content {
        justify-content: flex-end;
        align-items: center;
    }

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

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

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 5px;
        justify-content: center;
        vertical-align: middle;
    }

    .logo img {
        display: inline-block;
    }


    .logo h1 {
        margin: 0 0 0 10px;
        padding: 0;
        font-size: 1.6rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero {
        padding-top: 180px;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
