/* TOIKARA.DE - GOLDEN MASTER STYLES */

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* NOISE OVERLAY */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Try to load image, fallback to CSS noise if fails/missing handled by logic or CSS fallback if possible? 
     Pure CSS fallback as requested if image missing: opacity 0.03 */
    background-image: var(--bg-noise);
    opacity: 0.05;
    /* Adjusted for image, fallback below */
}

/* Pure CSS Noise Fallback logic is hard to do conditionally in pure CSS without JS checking load. 
   But we can stack backgrounds or just use a data URI for noise if we wanted strict fallback.
   For now, we stick to the spec: "If missing, generate a CSS noise overlay (opacity 0.03)."
   Since we can't detect "missing" in CSS, we'll assume the image might be there. 
   A common trick for "CSS noise" is a repeating-radial-gradient or data URI. 
   Let's add a class `.no-noise-img` we could toggle if needed, or just rely on the user providing the image.
   Wait, spec says: "If missing, generate a CSS noise overlay". 
   I will add a default CSS noise to the body background as a base layer? 
   No, let's stick to a simple pseudo-element that CAN be noise. 
   Actually, let's provide a Data URI noise as a robust fallback in `variables.css` or here.
*/

/* UTILITIES */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.mono {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-muted);
}

.accent {
    color: var(--accent-color);
}

.status {
    color: var(--status-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    /* Contrast for Teal */
}

.btn-primary:hover {
    background-color: #26b3a1;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 1px solid transparent;
    /* Starts transparent */
    background: transparent;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background-color: var(--bg-color);
    border-bottom-color: var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand img {
    height: 32px;
    width: auto;
}

/* Fallback for logo if missing */
.nav-brand img[src=""] {
    display: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand::after {
    content: "TOIKARA";
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    /* Only show text if image is broken/missing? 
     For now, we assume logo.svg is the way. 
     We can just style the alt text if needed. */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.founder-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: center;
}

.founder-image-container {
    width: 200px;
    height: 250px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.founder-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.founder-img {
    /* Legacy class kept for safety, but styles moved to container scope above */
    display: block;
}

.founder-info {
    padding: 0;
}

.founder-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.founder-email {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.founder-location {
    font-size: 0.9rem;
    color: #888;
    margin-top: 8px;
    display: block;
}

.lang-switch {
    margin-left: 2rem;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.lang-switch .active {
    color: var(--text-primary);
}

.lang-switch .inactive {
    color: var(--text-muted);
}

/* SECTIONS */
section {
    padding: 6rem 0;
}

/* HERO */
#start {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

h1 {
    font-size: 3rem;
    /* Adjust for impact */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* CONTROL PANEL CARD (Hero Right) */
.control-panel {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border-left: 2px solid var(--status-color);
    /* Mode B: Line Version */
    position: relative;
}

.control-panel h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.control-data {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.trust-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-muted);
}

/* LEISTUNGEN (Services) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.flagship-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    /* Spec doesn't strictly say border, but consistent */
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-top: 1.5rem;
}

.guardrails-boundary {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px dashed var(--border-color);
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* NACHWEISE */
.nachweise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.blind-signals {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-muted);
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
}

.standards-disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* PACKAGES (Zusammenarbeit) */
.package-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.package-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.package-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.package-price {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* VENTURES STRIP */
#ventures {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ventures-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.founder-card {
    background: var(--card-bg);
    padding: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.founder-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center 20%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #333;
    /* Placeholder color */
}

.founder-info {
    padding: 1.5rem;
}

.founder-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.founder-email {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.founder-location {
    font-size: 0.9rem;
    color: #888;
    margin-top: 8px;
    display: block;
}

/* FOOTER */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-meta {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #555;
    font-family: var(--font-mono);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .hero-grid,
    .services-grid,
    .nachweise-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation usually needed, but generic hidden for now unless spec demanded */
    }

    /* Spec didn't detail mobile menu explicitly, but responsive is implied. 
     For a "Golden Master" strictly following spec, if no mobile menu logic is given, 
     I will ensure it stacks nicely.
  */
}