/* === Custom Fonts === */
@font-face {
    font-family: 'AlteHaasGrotesk';
    src: url('fonts/AlteHaasGroteskRegular.ttf') format('truetype');
    font-weight: normal;
}
@font-face {
    font-family: 'AlteHaasGrotesk';
    src: url('fonts/AlteHaasGroteskBold.ttf') format('truetype');
    font-weight: bold;
}

/* === Color Variables === */
:root {
    --red: #F54933;
    --purple: #97339B;
    --green: #46FB38;
    --light-red: #FE3E6F;
    --light-blue: #1AD2F6;
    --text: #333;
    --bg: #f7f8fa;
}

/* === Base === */
body {
    font-family: 'AlteHaasGrotesk', Arial, sans-serif;
    background: linear-gradient(to bottom, #ffffff, #f0f4f9);
    margin: 0;
    color: var(--text);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* === Layout === */
main {
    max-width: 1200px;
    margin: 60px auto;
    background: white;
    padding: 50px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 14px;
}

/* === Decorative Left Bar === */
/* main::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 30px;
    height: 90%;
    width: 12px;
    background: linear-gradient(to bottom, var(--red), var(--purple), var(--light-blue), var(--green));
    border-radius: 8px;
}
*/

/* === Headings === */
h1 {
    font-size: 2.5em;
    font-weight: bold;
    position: relative;
    margin-top: 60px;
    padding-bottom: 12px;
    color: var(--text);
    /* border-bottom: 3px solid var(--red); */
}

h1::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 6px;
    background-color: var(--purple);
    border-radius: 4px;
}

h2 {
    font-size: 1.8em;
    color: var(--purple);
    font-weight: bold;
    margin-top: 50px;
}

h3 {
    font-size: 1.4em;
    color: var(--light-blue);
    font-weight: bold;
    margin-top: 40px;
    position: relative;
}

/* h3::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 4px;
    background: var(--light-blue);
    bottom: -6px;
    left: 0;
    border-radius: 2px;
}
*/
/* === Paragraphs === */
p {
    line-height: 1.7;
    margin: 18px 0;
    font-size: 1.1em;
}

/* === Author line === */
.name {
    font-style: italic;
    text-align: right;
    color: #aaa;
    font-size: 0.9em;
}

/* === Image === */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === Chart Wrapper === */
.chart-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.chart-wrapper > div {
    flex: 1 1 45%;
    min-width: 300px;
    max-width: 600px;
}

/* === Highlight Tags === */
.highlight-red {
    background-color: var(--light-red);
    color: white;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 5px;
}

.highlight-blue {
    background-color: var(--light-blue);
    color: white;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 5px;
}

/* === Links === */
a {
    color: var(--purple);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -2px;
    background-color: var(--purple);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 80px;
    background-color: white;
    border-top: 1px solid #ddd;
}

.logo {
    height: 50px;
    margin-top: 10px;
}

/* === InfoBox === */
#infoBox {
    background-color: var(--light-blue);
    color: black;
    font-family: 'AlteHaasGrotesk';
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
    padding: 20px;
}

/* === Section Navigation === */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--purple);
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.top-nav li {
    display: inline;
}

.top-nav a {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.top-nav a:hover,
.top-nav a:focus {
    background-color: var(--light-blue);
    color: black;
    text-decoration: none;
}

/* === Smooth Scrolling === */
html {
    scroll-behavior: smooth;
}

/* === Impressum === */
.impressum {
    background-color: #fff;
    margin-top: 80px;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.95em;
    color: #666;
}

.impressum h3 {
    color: var(--purple);
    margin-bottom: 10px;
    font-weight: bold;
}
