/*
Theme Name: HbDevSolutions
Theme URI: https://github.com/YOUR-GITHUB-USERNAME/HbDevSolutions
Author: Harald Braun
Description: Ein schlankes, sauberes WordPress-Theme für Projekte von HbDevSolutions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hbdevsolutions
Tags: custom-menu, custom-logo, editor-style, theme-json, block-patterns
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
*/

/* Globale CSS-Variablen: Dark Mode Schema */
:root {
    /* Farben */
    --color-background-dark: #121212; /* Dunkles Anthrazit */
    --color-background-medium: #1e1e1e; /* Dunkelgrau für Sektionen */
    --color-text-light: #e0e0e0; /* Helles Grau für Haupttext */
    --color-text-accent: #00bcd4; /* Türkis/cyan als Akzentfarbe (passt zu Tech/Software) */
    --color-text-secondary: #9e9e9e; /* Dunkleres Grau für Sekundärtext */
    --color-link: #00bcd4; /* Links in Akzentfarbe */

    /* Schriftgrössen (basis) */
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

/* Basis-Styling für den gesamten Body */
body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Haupt-Layout Container */
#root {
    max-width: 1200px;  /* Maximale Breite für Desktop Ansicht */
    margin: 0 auto;     /* Zentrierung */
    padding: 2rem;
    text-align: center;
    padding-top: 60px;  /* Höhe des Headers */
}

.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

#header {
    position: fixed;    /* Header bleibt oben */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background-color: var(--color-background-medium);   /* Etwas heller als der Body */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light); /* Gesamter Text in Light Color */
}

.logo-image {
    height: 150px;   /* Nach Bedarf anpassen */
    padding-top: 20px;
    width: auto;
}

.logo-initials {
    color: var(--color-text-accent);    /* Initialen in Akzentfarbe */
    font-weight: 900;   /* Extra-Fett, um herauszustechen */
    margin-right: 0.25rem;
}

.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.navlinks a:hover {
    color: var(--color-text-accent);
    text-decoration: none;
}

/* Headings (Überschriften) */
h1, h2, h3, h4 {
    color: var(--color-text-light); /* Helle Farbe für Überschriften */
    margin-top: 0;
    font-weight: 600;
}

h1 {
    font-size: 3.2rem; /* Grosse Schrift für Hero-Sektion */
}

h2 {
    font-size: 2rem;
    color: var(--color-text-accent); /* Sektionsüberschriften in Akzentfarbe */
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-background-medium);
}

/* Links */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* Selektor für Hervorhebungen (z.B. für Skills oder Zitate) */
.highlight {
    color: var(--color-text-accent);
    font-weight: 700;
}

/* Styling für die Kontakt-Sektion (M08) */
.contact-section {
    text-align: left;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
    justify-content: center;
}

.contact-details {
    flex: 1 1 300px;
    padding: 1.5rem;
    background-color: var(--color-background-medium);
    border-radius: 8px;
}

.contact-profile {
    flex: 2 1 450px;
    padding: 1.5rem;
    background-color: var(--color-background-dark);
    border-radius: 8px;
}

.contact-details h3, .contact-profile h3 {
    color: var(--color-text-accent);
    border-bottom: 1px solid var(--color-text-secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 0.75rem;
}

.hero-section {
    padding: 6rem 2rem;
    text-align: center;
}

.hero-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 3rem;
	align-items: center;
	text-align: left;
	margin-top: 3rem;
}

.hero-image {
	flex: 1 1 300px;
	max-width: 100%;
}

.hero-image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5)
}

.hero-description {
	flex: 2 1 450px;
}

.hero-description p {
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.button-link {
    display: inline-block;
    background-color: var(--color-text-accent);
    color: var(--color-background-dark);
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button-link:hover {
    background-color: #0097a7; /* Dunkleres Türkis beim Hover */
    text-decoration: none;
}

.content-section {
    padding: 4rem 2rem;
    border-top: 1px solid var(--color-background-medium);
    text-align: left;
}

.skill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.skill-category {
    flex: 1 1 300px;    /* nimmt mindestens 300px ein, wächst und schrumpft */
    padding: 1rem;
    background-color: var(--color-background-medium);
    border-radius: 8px;
}

.mentoring-story {
    font-style: italic;
    border-left: 3px solid var(--color-text-accent);
    padding-left: 1rem;
    margin-top: 1rem;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
	.hero-grid {
		flex-direction: column;
		gap: 2rem;
	}
	
	.hero-image, .hero-description {
		flex: 1 1 100%;
		max-width: 100%;
	}
	
	.hero-section h1 {
		font-size: 2.5rem;
	}
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 2.5rem;
	margin-top: 3rem;
}

.project-container {
	background-color: var(--color-background-medium);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.5);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.project-container:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
	border-color: var(--color-text-accent);
}

.project-video-wrapper {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
}

.project-video-wrapper video,
.project-video-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.project-content h3 {
	margin-bottom: 1rem;
	color: var(--color-text-accent);
}

.project-content p {
	font-size: 0.95rem;
	color: var(--color-text-secondary);
	margin-bottom: 2rem;
	line-height: 1.5;
}

.github-link {
	align-self: flex-start;
	margin-top: auto;
	font-size: 0.85rem;
}

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

.tech-stack {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.badge {
	background-color: rgba(0, 188, 212, 0.1);
	color: var(--color-text-accent);
	border: 1px solid var(--color-text-accent);
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: bold;
	text-transform: uppercase;
}