/**
 * Main Stylesheet
 * Global styles and component styles
 */

:root {
    --primary-color: #fbbf24;
    --primary-dark: #f59e0b;
    --secondary-color: #6b7280;
    --secondary-dark: #4b5563;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --light-bg: #f3f4f6;
    --grey-light: #e5e7eb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --line-height: 1.6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: var(--line-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder {
    width: 200px;
    height: 60px;
    background-color: var(--light-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo a {
    color: var(--text-color);
}

/* Navigation */
.navigation {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Call to Action Button */
.cta-button,
.submit-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-dark);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover,
.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Features with Image */
.features-with-image {
    margin: 4rem 0;
}

.features-with-image h2 {
    margin-bottom: 2rem;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.features-text {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.features-image {
    display: flex;
    justify-content: center;
}

/* Checkmark List */
.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.checkmark-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Image Placeholder */
.image-placeholder {
    position: relative;
    background-color: var(--light-bg);
    /* border: 2px dashed var(--grey-light); */
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-text {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    margin: 0;
}

/* Services Preview on Home */
.services-preview {
    margin: 4rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--bg-color) 100%);
    padding: 3rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.services-preview h2 {
    margin-bottom: 2rem;
    color: var(--secondary-dark);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-item-simple {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-item-simple:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.service-item-simple .checkmark {
    margin-top: 0.25rem;
}

.service-item-simple h3 {
    margin: 0;
    color: var(--secondary-dark);
    font-size: 1.1rem;
}

/* Projekte Section */
.projekte {
    padding: 2rem 0;
}

.projekte h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.projekte-intro {
    text-align: center;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.projekte-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.projekt-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projekt-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.projekt-image {
    width: 100%;
    height: auto;
}

.projekt-image .image-placeholder {
    margin: 0;
    border-radius: 0;
}

.projekt-text {
    padding: 2rem;
}

.projekt-text h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.projekt-text p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.cta-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #e5b01f;
    transform: scale(1.05);
}

/* Services Section */
.services {
    margin: 2rem 0;
}

.services-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.services-detail.reverse {
    direction: rtl;
}

.services-detail.reverse > * {
    direction: ltr;
}

.service-text {
    padding: 1rem 0;
}

.service-text h2 {
    color: var(--secondary-dark);
    margin-bottom: 1.5rem;
}

.service-image {
    display: flex;
    justify-content: center;
}

.cta-section {
    text-align: center;
    margin: 4rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    margin: 2rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    margin-top: 1rem;
}

#formMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

#formMessage.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

#formMessage.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.contact-info {
    padding: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: var(--primary-color);
}

/* 404 Page */
.not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.not-found h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.back-home-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 2rem;
    text-align: center;
    color: #d1d5db;
}

/* Calculator Section */
.calculator-section {
    margin: 2rem 0;
}

.calculator-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.calculator-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calculator-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    color: var(--secondary-dark);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--grey-light);
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 1;
}

.unit {
    font-weight: 600;
    color: var(--secondary-dark);
    min-width: 40px;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Checkbox styling for calculator */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    box-shadow: var(--shadow);
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
    width: 100%;
    font-weight: 500;
}

.checkmark-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.calculate-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--secondary-dark);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculate-button span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Calculator Results */
.calculator-results {
    margin-top: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.calculator-results h2 {
    color: var(--secondary-dark);
    margin-bottom: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-bg);
    border-radius: 4px;
}

.result-label {
    font-weight: 500;
    color: var(--text-color);
}

.result-value {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.result-total {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
}

.result-total .result-label,
.result-total .result-value {
    color: var(--secondary-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.result-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Calculator Info Sidebar */
.calculator-info {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.calculator-info h2 {
    color: var(--secondary-dark);
    margin-bottom: 1.5rem;
}

.calculator-info h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.info-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.info-box p {
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateX(5px);
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
