/*
 * ===================================================
 * YoloCode - Haupt-Stylesheet
 * Beinhaltet Styles für index.html, about.html, kontakt.html und portfolio.html
 * ===================================================
 */

/* --- 1. GRUNDLAGEN & FARBPALETTE (YOLODE-MARKENFARBEN) --- */
:root {
	/* Dunkle Basis: Das Dunkelblau aus dem YoloCode-Logo */
	--color-background-dark: #121B2B; 
	--color-surface: #1C304A; 
	
	/* Textfarben */
	--color-text-light: #FFFFFF; 
	--color-text-muted: #A0A0A0; 

	/* AKZENTFARBEN (aus Ihrem Logo) */
	--color-accent-primary: #00FFFF; /* ELECTRIC CYAN (Türkis-Akzent) */
	--color-accent-secondary: #FFFFFF; /* Reines Weiß für Sekundäre CTAs/Kontrast */
	
	--font-primary: 'Arial', sans-serif; 
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-primary);
	background-color: var(--color-background-dark);
	color: var(--color-text-light);
	line-height: 1.6;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px; /* Standard-Padding auf Desktops */
}

.section-padding {
	padding: 80px 0;
}

/* --- 2. TYPOGRAFIE & HIERARCHIE --- */

h1, h2, h3 {
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-text-light); 
}

h1 {
	font-size: 4rem; 
	margin-bottom: 20px;
}

h2 {
	font-size: 2.5rem;
	margin-bottom: 10px;
	text-align: center;
}

h3 {
	font-size: 1.5rem; /* Standard H3 Größe hinzugefügt */
}

.pre-headline {
	color: var(--color-accent-primary); 
	font-size: 0.9rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.section-subtitle {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
	color: var(--color-text-muted);
}

/* --- 3. HEADER & NAVIGATION (DESKTOP) --- */

header {
	background-color: var(--color-surface);
	padding: 15px 0; 
	border-bottom: 1px solid rgba(0, 255, 255, 0.15); 
	position: relative; 
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--color-text-light); 
	text-decoration: none;
}

.main-nav a {
	color: var(--color-text-light);
	text-decoration: none;
	margin-left: 25px;
	transition: color 0.3s;
}

.main-nav a:hover:not(.btn) {
	color: var(--color-accent-primary); 
}

/* Burger Menü Styling (Desktop - Icon ausblenden) */

.nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: none; /* Auf Desktop ausblenden */
	cursor: pointer;
	z-index: 1001; 
	/* Setzt die Akzentfarbe für das Burger-Icon */
	color: var(--color-accent-primary); 
}


/* --- 4. BUTTONS (CTAs) --- */

.btn {
	display: inline-block;
	padding: 12px 30px;
	text-decoration: none;
	font-weight: 600;
	border: 2px solid transparent;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.btn.primary {
	background-color: var(--color-accent-primary);
	color: var(--color-background-dark); 
	border-color: var(--color-accent-primary);
}

.btn.primary:hover {
	background-color: transparent;
	color: var(--color-accent-primary);
}

/* Definieren des primary-outline Buttons (vom Nutzer in about.html verwendet) */
.btn.primary-outline {
	background-color: transparent;
	color: var(--color-accent-primary); 
	border-color: var(--color-accent-primary); 
}

.btn.primary-outline:hover {
	background-color: var(--color-accent-primary);
	color: var(--color-background-dark);
}

.btn.secondary-outline {
	background-color: transparent;
	color: var(--color-accent-secondary); 
	border-color: var(--color-accent-secondary); 
}

.btn.secondary-outline:hover {
	background-color: var(--color-accent-secondary);
	color: var(--color-background-dark);
}

/* --- 5. HERO SECTION (index.html) --- */

#hero {
	min-height: 500px;
	display: flex;
	flex-direction: column; 
	align-items: flex-start; 
	padding: 100px 0;
	text-align: left;
	background: radial-gradient(circle at top left, rgba(0, 255, 255, 0.1) 0%, transparent 50%); 
}

#hero h1 strong {
	color: var(--color-accent-primary); 
}

.lead-text {
	font-size: 1.2rem;
	margin-bottom: 40px;
	max-width: 700px;
	color: var(--color-text-light);
	margin-left: auto;
	margin-right: auto;
}

.hero-actions .btn {
	margin-right: 15px;
}

/* --- 6. SERVICES GRID (index.html) --- */

.service-grid {
	display: flex;
	gap: 30px;
	justify-content: center;
}

.service-box {
	background-color: var(--color-surface);
	padding: 40px;
	border-radius: 10px;
	width: 50%;
	border-top: 5px solid transparent;
	transition: border-top-color 0.4s ease, transform 0.3s;
	/* Allgemeine Service Box Styles für das 3er Grid in leistungen.html */
	display: flex; 
	flex-direction: column;
	justify-content: space-between;
	min-height: 280px; 
	width: auto; /* WICHTIG: Überschreibt die 50% für .service-grid-3x */
}

.service-box:hover {
	border-top-color: var(--color-accent-primary); 
	transform: translateY(-5px); 
}

.service-box h3 {
	color: var(--color-accent-primary); 
	margin-bottom: 15px;
}

.link-arrow {
	display: inline-block;
	margin-top: 20px;
	color: var(--color-accent-primary);
	text-decoration: none;
	font-weight: 600;
}

/* --- 7. FOOTER & CTA STRIP --- */

.cta-strip {
	background-color: var(--color-surface); /* Dunkle Oberfläche für den CTA Strip */
	padding: 40px 0;
	text-align: center;
	border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.cta-strip h2 {
	color: var(--color-accent-primary);
	margin-bottom: 15px;
}

.cta-strip p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	font-weight: 400;
}

.cta-strip .btn {
	background-color: var(--color-accent-primary);
	color: var(--color-background-dark);
	border-color: var(--color-accent-primary);
}

footer {
	background-color: #0c1626; 
	padding: 30px 0;
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

footer .container {
	display: flex;
	justify-content: space-between; 
	align-items: center;
}

.footer-links {
	display: flex;
	gap: 20px;
	margin: 0;
}

.footer-links a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--color-accent-primary);
}


/* =================================================== */
/* --- 9. STYLES FÜR ABOUT.HTML (DESKTOP) --- */
/* =================================================== */

/* Hero Section (About) */

#about-hero {
	text-align: center; 
	padding-top: 100px;
	padding-bottom: 50px;
}

#about-hero h1 {
	font-size: 3.5rem;
	margin-bottom: 50px;
}

/* Stilisiert die zwei Spalten für die Story */
.about-intro-content .two-column-story {
	display: flex;
	gap: 40px;
	margin-top: 30px;
	text-align: left; 
}

.about-intro-content .two-column-story h3 {
	color: var(--color-accent-primary);
	margin-bottom: 15px;
}

.about-intro-content .two-column-story p {
	color: var(--color-text-light);
}

/* Story-Elemente erhalten volle Flex-Basis auf Desktop */
.about-intro-content .two-column-story > div {
	flex-basis: 50%;
}


/* Prozess-Steps (Abschnitt 4) */
.process-steps {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	margin-top: 50px;
	text-align: center;
}

.process-step {
	flex: 1;
	padding: 20px;
	border-radius: 8px;
	background-color: transparent;
	position: relative;
}

.process-step .step-number {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background-color: var(--color-accent-primary);
	color: var(--color-background-dark);
	font-weight: 700;
	font-size: 1.2rem;
	box-shadow: 0 0 0 5px var(--color-surface);
}

.process-step h3 {
	color: var(--color-accent-secondary);
	margin-bottom: 10px;
}
/* Linie zwischen den Prozess-Schritten (Desktop-Only) */
.process-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 30px;
	right: -15px; 
	width: 30px;
	height: 2px;
	background-color: var(--color-text-muted);
	z-index: -1;
}

/* =================================================== */
/* --- 10. STYLES FÜR KONTAKT.HTML & PORTFOLIO.HTML (DESKTOP) --- */
/* =================================================== */

/* Kontakt Formular Box */
.contact-form-box {
	background-color: var(--color-surface);
	padding: 50px;
	border-radius: 10px;
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid rgba(0, 255, 255, 0.1);
}

.input-group {
	margin-bottom: 20px;
}

.input-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--color-text-light);
}

.input-field {
	width: 100%;
	padding: 12px;
	background-color: var(--color-background-dark);
	border: 1px solid var(--color-text-muted);
	border-radius: 5px;
	color: var(--color-text-light);
	transition: border-color 0.3s;
}

.input-field:focus {
	border-color: var(--color-accent-primary);
	outline: none;
}

/* Direkte Kontaktdaten-Styling */
.direct-contact-details {
	display: flex;
	justify-content: center;
	gap: 80px; 
	margin-top: 50px;
	padding: 30px 0;
	border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.contact-item {
	text-align: center;
}

.contact-item i {
	font-size: 2.5rem;
	color: var(--color-accent-primary);
	margin-bottom: 10px;
}

.contact-item p {
	color: var(--color-text-muted);
	margin-bottom: 5px;
}

.contact-item a, .contact-item span {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-text-light);
}

.contact-item a:hover {
	color: var(--color-accent-primary);
}


/* Portfolio Grid Styling */
.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 50px;
}

.project-card {
	background-color: var(--color-surface);
	padding: 30px;
	border-radius: 10px;
	border-top: 5px solid transparent;
	transition: border-top-color 0.4s ease, transform 0.3s, box-shadow 0.3s;
	display: flex;
	flex-direction: column;
}

.project-card:hover {
	border-top-color: var(--color-accent-primary);
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.project-card .icon-placeholder {
	font-size: 2.5rem;
	color: var(--color-accent-primary);
	margin-bottom: 15px;
}

.project-card h3 {
	color: var(--color-text-light);
	margin-bottom: 10px;
}

.project-card .tags {
	margin-top: 15px;
	margin-bottom: 20px;
}

.project-card .tag {
	display: inline-block;
	background-color: var(--color-background-dark);
	color: var(--color-text-muted);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.8rem;
	margin-right: 5px;
}

.project-card .btn {
	margin-top: auto; 
	text-align: center;
}


/* =================================================== */
/* --- 11. RESPONSIVE DESIGN (MEDIA QUERIES) --- */
/* =================================================== */

@media (max-width: 1024px) {
	/* Portfolio Grid wechselt zu zwei Spalten */
	.project-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}


@media (max-width: 768px) {
	
	/* Globales Container Padding für Mobile */
	.container {
		padding: 0 15px; 
	}
	
	/* Typografie Anpassungen Mobile */
	h1 {
		font-size: 3rem; /* Index.html Hero */
	}

	h2 {
		font-size: 2rem;
	}
	
	/* HEADER MOBILE (Navigation) */
	.logo {
		z-index: 1002;
	}
	
	.nav-toggle-label {
		display: block; 
		order: 1; 
		font-size: 1.5rem;
	}
	
	.main-nav {
		position: fixed; /* Geändert von absolute auf fixed, um über den Content zu liegen */
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--color-surface);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease-in-out, visibility 0.3s;
		z-index: 1000;
		padding-top: 50px;
	}
	
	.nav-toggle:checked ~ .main-nav {
		opacity: 1;
		visibility: visible;
	}

	.main-nav a {
		display: block;
		margin: 20px 0;
		font-size: 1.5rem;
	}
	
	/* Stellt sicher, dass die Buttons in der mobilen Navigation sichtbar sind */
	.main-nav .btn.primary-outline, .main-nav .btn.secondary-outline {
		margin-top: 20px;
		font-size: 1rem;
		padding: 10px 25px;
	}
	
	/* HERO MOBILE (index.html) */
	#hero {
		padding: 80px 0;
		min-height: auto;
		text-align: center;
		align-items: center;
	}
	/* HERO MOBILE (leistungen.html) */
	#leistungen-hero h1 {
		font-size: 3rem; /* Konsistent mit index.html */
	}
	
	/* Setzt die Lead-Text-Breite auf Mobile */
	.lead-text {
		max-width: 100%;
		text-align: center;
	}

	.hero-actions {
		display: flex;
		flex-direction: column;
		gap: 15px;
	}
	.hero-actions .btn {
		margin-right: 0;
		width: 100%;
		text-align: center;
	}


	/* DIENSTE MOBILE (index.html) */
	.service-grid {
		flex-direction: column; /* Stapelt die Boxen untereinander */
	}
	
	.service-box {
		width: 100%;
		min-height: auto; /* WICHTIG: Entfernt feste Höhe auf Mobile */
		text-align: left; /* WICHTIG: Stellt Text auf Mobile linksbündig */
        /* KORREKTUR: Padding reduziert von 25px auf 20px, um Rundungsfehler
           oder minimale Überschüsse auf mobilen Geräten zu vermeiden. */
		padding: 30px 20px;
	}
	.service-box .icon-placeholder {
		margin: 0 0 15px 0; /* Stellt Icon linksbündig auf Mobile */
	}
	.link-arrow {
		align-self: flex-start; /* Stellt Link linksbündig auf Mobile */
	}

	/* MOBILE-ANPASSUNGEN FÜR ABOUT.HTML */
	
	/* Zwei Spalten werden untereinander gestapelt */
	.about-intro-content .two-column-story {
		flex-direction: column;
		gap: 20px;
		width: 100%; 
		padding: 0 5px; 
	}
	
	/* Korrigiert: Erzwingt, dass Story-Elemente 100% Breite auf Mobilgeräten nutzen */
	.about-intro-content .two-column-story > div {
		width: 100%;
		flex-basis: auto; 
	}
	
	/* Prozess-Steps werden vertikal gestapelt */
	.process-steps {
		flex-direction: column;
		gap: 60px; /* Vergrößerter Abstand */
	}
	
	/* Linie zwischen den Prozess-Schritten (Mobile) */
	.process-step:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 60px;
		left: 50%;
		transform: translateX(-50%);
		height: 40px; 
		width: 2px;
	}
	
	/* MOBILE-ANPASSUNGEN FÜR KONTAKT.HTML */
	.contact-form-box {
		padding: 30px 20px;
	}
	
	.direct-contact-details {
		flex-direction: column;
		gap: 30px;
		padding: 20px 0;
		border-top: none;
		border-bottom: 2px solid rgba(0, 255, 255, 0.2);
	}
	
	/* MOBILE-ANPASSUNGEN FÜR PORTFOLIO.HTML */
	.project-grid {
		grid-template-columns: 1fr; /* Einspaltig auf Mobile */
	}

	
	/* FUSSZEILE MOBILE */
	footer .container {
		flex-direction: column;
		text-align: center;
	}
	
	.footer-links {
		margin-top: 15px;
	}
	
	/* MOBILE ANPASSUNGEN für leistungen.html */
	.service-grid-3x {
		grid-template-columns: 1fr;
	}

} /* Schließt die Media Query ab */

@media (max-width: 480px) {
	/* Kleinere Anpassungen für sehr kleine Handys */
	h1 {
		font-size: 2.5rem;
	}
}

/* =================================================== */
/* --- SERVICES GRID FÜR LEISTUNGEN.HTML --- */
/* =================================================== */

.service-grid-3x {
	display: grid;
	/* Angepasst: 3 Spalten auf Desktop */
	grid-template-columns: repeat(3, 1fr);
	/* ANPASSUNG: Abstand zwischen den Boxen reduziert auf 24px */
	gap: 24px;
	margin-top: 50px;
}

/* Die allgemeinen .service-box Styles von oben werden hier verwendet. */


.icon-placeholder {
	font-size: 2.2rem;
	color: var(--color-accent-primary);
	margin-bottom: 15px;
}

.service-box h3 {
	color: var(--color-accent-primary);
	font-size: 1.3rem;
	margin-bottom: 10px;
}

.service-box p {
	color: var(--color-text-light);
	line-height: 1.5;
	margin-bottom: 20px;
	flex-grow: 1; /* WICHTIG: Für konsistente Höhe */
}


/* ============================== */
/* RESPONSIVE BREAKPOINTS (LEISTUNGEN) */
/* ============================== */

@media (max-width: 1200px) {
	.service-grid-3x {
		/* Zwei Spalten ab 1200px */
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

/* GRUNDSTYLING FÜR DIE NEWS-SEITE */
.news-section {
    padding: 60px 20px;
    max-width: 1200px; /* Oder die Breite Ihres Haupt-Containers */
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-light); /* Angenommene Textfarbe */
    margin-bottom: 40px;
    text-align: center;
}

/* GRID FÜR BEITRAGSKARTEN */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* STYLING DER EINZELNEN KARTE (Link) */
.news-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-background-secondary); /* Leichter Hintergrund für die Karte */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border-subtle); /* Dezente Rahmenlinie */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* BEITRAGSBILD */
.news-image-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}
.news-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* KARTEN-INHALT */
.news-content {
    padding: 20px;
    flex-grow: 1;
}

.news-category {
    display: inline-block;
    color: var(--color-text-light); /* Weißer Text auf der Akzentfarbe */
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1rem;
    color: var(--color-text-muted); /* Gedämpfter Text für den Auszug */
    margin-bottom: 20px;
}

/* METADATEN (Datum, Lesezeit) */
.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.meta-item i {
    margin-right: 5px;
    color: var(--color-accent-primary);
}

/* MOBILE ANPASSUNG (Für kleinere Bildschirme) */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf Mobilgeräten */
    }
}

@media (max-width: 768px) {
    /* index.html - Abstand zwischen Automatisierung und CTA-Bottom */
    #services .service-box#automation {
        margin-bottom: 40px;
    }
    #cta-bottom.cta-strip {
        margin-top: 40px;
    }

    /* leistungen.html - Abstand zwischen Kernkompetenzen, Workflow und CTA */
    #solutions {
        margin-bottom: 40px;
    }
    #workflow {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    #workflow .process-step {
        margin-bottom: 20px;
    }
    #cta-bottom.cta-strip {
        margin-top: 40px;
    }

    /* portfolio.html - Abstände bei Portfolio-Hero, Testimonials und CTA */
    #portfolio-hero {
        padding-top: 40px;
    }
    #testimonials {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .project-card:last-child {
        margin-bottom: 40px;
    }
    #cta-strip {
        margin-top: 40px;
    }

    /* about.html - Abstand Workflow, Prozess, Zertifizierungen und Trennlinien */
    #workflow {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    #workflow + .btn {
        margin-top: 40px;
    }
    #prozess + section#certifications {
        margin-top: 40px;
    }
    .process-step::after {
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: -20px !important;
        height: 2px !important;
        width: 100% !important;
        background-color: var(--color-text-muted);
    }
    .certifications-list {
        margin-bottom: 40px;
    }

    /* kontakt.html - Abstand Kontakt aufnehmen zu Header */
    #contact-section {
        padding-top: 40px;
    }

	#streaming-impact .btn,
	#about-hero + #streaming-impact {
		margin-top: 40px;
		display:block
	}

	#process + div[style*="text-align: center"] {
		margin-top: 40px !important;
	}

	#certifications {
		margin-top: 40px !important;
	}
}

#page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main.container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
footer {
  flex-shrink: 0;
}


