/*
Theme Name: Technikstube
Theme URI: https://technikstube.com/
Author: Technikstube
Description: Saubere WordPress-Rekonstruktion der Technikstube-Website nach Sicherheitsvorfall.
Version: 1.2.3
Text Domain: technikstube
*/


/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

:root {
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface2: #eef4fb;
    --ink: #102033;
    --muted: #5d6b7b;
    --line: #dbe5f0;
    --brand: #1769aa;
    --brand2: #0b4c7d;
    --accent: #2da8d8;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(var(--max), calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.ts-main {
    min-height: 55vh;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
    padding: 6px 0;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 850;
    font-size: 1.08rem;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    display: block;
    flex: 0 0 auto;

    /* Logo weiter Richtung Menü */
    margin-left: 200px;
}

.site-header .brand-logo img {
    display: block;
    width: 125px;
    max-width: 125px;
    max-height: 125px;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   HAUPTMENÜ
   ========================================================= */

.site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
}

.site-nav #primary-menu,
.site-nav .site-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 17px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav #primary-menu > li,
.site-nav .site-menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav #primary-menu > li::marker,
.site-nav .site-menu > li::marker {
    content: "";
}

.site-nav a {
    display: block;
    font-weight: 650;
    color: #32475d;
    font-size: .92rem;
    white-space: nowrap;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--brand);
    text-decoration: none;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
    color: var(--brand);
}

.site-nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 11px;
    font: inherit;
    font-weight: 750;
    color: var(--ink);
}


/* =========================================================
   HERO / STARTSEITE
   ========================================================= */

.hero {
    padding: 92px 0 78px;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(45,168,216,.22),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #fff 0%,
            #f5f8fc 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    gap: 54px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e7f3fb;
    color: var(--brand2);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.14;
    margin: 0 0 16px;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2.55rem, 6vw, 5.1rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
    font-size: 1.25rem;
}

.hero h1 {
    max-width: 760px;
}

.lead {
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    color: var(--muted);
    max-width: 760px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 19px;

    border-radius: 13px;
    border: 1px solid var(--brand);

    background: var(--brand);
    color: #fff;

    font-weight: 800;
}

.btn:hover {
    background: var(--brand2);
    color: #fff;
    text-decoration: none;
}

.btn.secondary {
    background: #fff;
    color: var(--brand);
}


/* Gutenberg-Buttons */

.actions .wp-block-button__link,
.band .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 19px;

    border-radius: 13px;
    border: 1px solid var(--brand);

    background: var(--brand);
    color: #fff;

    font-weight: 800;
}

.actions .wp-block-button__link:hover,
.band .wp-block-button__link:hover {
    background: var(--brand2);
    color: #fff;
    text-decoration: none;
}

.actions .secondary .wp-block-button__link {
    background: #fff;
    color: var(--brand);
}


/* =========================================================
   KARTEN
   ========================================================= */

.hero-card,
.card,
.contact-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;

    box-shadow:
        0 10px 28px rgba(17,50,80,.06);
}

.big-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.hero-card ul,
.list {
    list-style: none;
    padding: 0;
}

.hero-card li {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}


/* =========================================================
   BEREICHE / GRIDS
   ========================================================= */

section {
    padding: 76px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head p,
.card p,
.muted {
    color: var(--muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.icon {
    font-size: 1.65rem;
    margin-bottom: 14px;
}

.soft {
    background: var(--surface2);
}


/* =========================================================
   PREISE
   ========================================================= */

.price-list {
    display: grid;
    gap: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;

    padding: 17px 18px;
}

.price-row strong {
    color: var(--brand2);
}

.price-row p {
    margin: 0;
}


/* =========================================================
   CTA-BAND
   ========================================================= */

.band {
    background:
        linear-gradient(
            135deg,
            var(--brand2),
            #163c61
        );

    color: #fff;

    border-radius: 28px;
    padding: 38px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.band p {
    color: #d9e9f6;
}

.band .btn,
.band .wp-block-button__link {
    background: #fff;
    color: var(--brand2);
    border-color: #fff;
}


/* =========================================================
   LISTEN
   ========================================================= */

.list li {
    padding: 9px 0 9px 30px;
    position: relative;
}

.list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #167b5a;
    font-weight: 900;
}


/* =========================================================
   KONTAKT
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 26px;

    width: min(1000px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.notice {
    padding: 16px 18px;
    border: 1px solid #c7dceb;
    background: #edf7fc;
    border-radius: 14px;
    color: #31566e;
}


/* Kontaktseite zentrieren */

.contact-hero,
.contact-hero .wp-block-group,
.contact-hero h1,
.contact-hero h2,
.contact-hero p {
    text-align: center;
}

.contact-hero > .container,
.contact-hero > .wp-block-group {
    width: min(900px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.contact-hero .eyebrow,
.contact-hero .lead {
    margin-left: auto;
    margin-right: auto;
}

.contact-box,
.contact-box h2,
.contact-box h3,
.contact-box p {
    text-align: center;
}

.contact-box .actions {
    justify-content: center;
}


/* Formular selbst linksbündig */

.contact-box form,
.contact-box form label {
    text-align: left;
}


/* =========================================================
   FORMULAR
   ========================================================= */

label {
    display: block;
    font-weight: 750;
    margin: 14px 0 6px;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;

    border: 1px solid #cad8e6;
    border-radius: 12px;

    font: inherit;
}

textarea {
    min-height: 150px;
}

.ts-form-status {
    margin: 0 0 18px;
    padding: 14px 16px;

    border-radius: 12px;
    border: 1px solid var(--line);

    background: #fff;
}

.ts-form-status.success {
    border-color: #a8d5bd;
    background: #eef9f2;
    color: #245c3d;
}

.ts-form-status.error {
    border-color: #e3b0b0;
    background: #fff2f2;
    color: #7a2b2b;
}

.ts-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* =========================================================
   SERVICE-KATEGORIEN
   ========================================================= */

.category-card {
    display: block;
    color: var(--ink);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.category-card:hover {
    text-decoration: none;
    transform: translateY(-3px);

    box-shadow:
        0 14px 32px rgba(17,50,80,.1);
}

.category-card span {
    color: var(--brand);
    font-weight: 800;
}

.service-categories {
    align-items: stretch;
}

.service-categories .card {
    height: 100%;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #0d1d2c;
    color: #d7e3ed;

    padding: 50px 0 28px;
    margin-top: 50px;
}

.footer a {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .9fr;
    gap: 30px;
}

.footer-bottom {
    border-top: 1px solid #294053;
    margin-top: 28px;
    padding-top: 20px;
}

.footer-logo {
    display: inline-block;

    background: #fff;
    border-radius: 14px;

    padding: 7px 10px;
    margin-bottom: 10px;
}

.footer-logo img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   TEXTE / TAGS
   ========================================================= */

.prose {
    max-width: 880px;
}

.prose h2 {
    font-size: 1.8rem;
    margin-top: 38px;
}

.prose p {
    color: #35495e;
}

.tag {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 999px;
    background: #edf3f9;
    color: #36536f;

    font-size: .82rem;
    font-weight: 750;
}


/* =========================================================
   WORDPRESS ADMIN-BAR
   ========================================================= */

body.admin-bar .site-header {
    top: 32px;
}


/* =========================================================
   RESPONSIVE – TABLET
   ========================================================= */

@media(max-width:1050px) {

    .site-nav #primary-menu,
    .site-nav .site-menu {
        gap: 12px;
    }

    .site-nav a {
        font-size: .87rem;
    }

}


/* =========================================================
   RESPONSIVE – HANDY / TABLET
   ========================================================= */

@media(max-width:900px) {

    .hero-grid,
    .grid-3,
    .grid-2,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 64px;
    }

    .band {
        align-items: flex-start;
        flex-direction: column;
    }


    /* Logo */

    .brand-logo {
        margin-left: 0;
    }

    .site-header .brand-logo img {
        width: 105px;
        max-width: 105px;
        max-height: 105px;
    }


    /* Header */

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }


    /* Menü */

    .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;

        position: static;
        left: auto;
        transform: none;

        width: 100%;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav #primary-menu,
    .site-nav .site-menu {
        width: 100%;

        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

    .site-nav a {
        padding: 6px 0;
    }

}


/* =========================================================
   WORDPRESS ADMIN-BAR MOBIL
   ========================================================= */

@media(max-width:782px) {

    body.admin-bar .site-header {
        top: 46px;
    }

}


/* =========================================================
   KLEINE HANDYS
   ========================================================= */

@media(max-width:560px) {

    .container {
        width: min(100% - 24px, var(--max));
    }

    section {
        padding: 56px 0;
    }

    .price-row {
        flex-direction: column;
        gap: 4px;
    }

    .contact-hero > .container,
    .contact-hero > .wp-block-group,
    .contact-grid {
        width: calc(100% - 24px);
    }

}


@media(max-width:480px) {

    .site-header .brand-logo img {
        width: 100px;
        max-width: 100px;
    }

    .site-nav-toggle {
        padding: 7px 9px;
    }

}


/* =========================================================
   GUTENBERG-EDITOR
   Darstellung näher an der echten Webseite
   ========================================================= */

.editor-styles-wrapper {
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}

.editor-styles-wrapper .container {
    width: min(var(--max), calc(100% - 36px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/*
   Der WordPress-Editor ist schmaler als die echte Webseite.
   Deshalb verhindern wir hier, dass die Desktop-Grids
   im Editor automatisch auf eine Spalte springen.
*/

.editor-styles-wrapper .hero-grid {
    grid-template-columns: 1.5fr .5fr !important;
    gap: 35px !important;
}

.editor-styles-wrapper .grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.editor-styles-wrapper .grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.editor-styles-wrapper .contact-grid {
    grid-template-columns: .9fr 1.1fr !important;
}


/* Überschriften im Editor etwas handlicher */

.editor-styles-wrapper .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
}


/* Auf sehr schmalem Editor wieder einspaltig */

@media(max-width:650px) {

    .editor-styles-wrapper .hero-grid,
    .editor-styles-wrapper .grid-3,
    .editor-styles-wrapper .grid-2,
    .editor-styles-wrapper .contact-grid {
        grid-template-columns: 1fr !important;
    }

}
/* =========================================================
   Gutenberg-Editor – weniger Leerraum auf der Startseite
   Nur Bearbeitungsansicht, öffentliche Website bleibt gleich
   ========================================================= */

.editor-styles-wrapper .hero {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
}

.editor-styles-wrapper .hero-grid {
    gap: 24px !important;
}

.editor-styles-wrapper .section-head {
    margin-bottom: 20px !important;
}

.editor-styles-wrapper section {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
}
/* =========================================================
   GUTENBERG-EDITOR KOMPAKTER
   Hat keinen Einfluss auf die öffentliche Website
   ========================================================= */

.editor-styles-wrapper .hero {
    padding-top: 25px !important;
    padding-bottom: 35px !important;
}

.editor-styles-wrapper .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
}

.editor-styles-wrapper .hero h1 {
    max-width: none !important;
    width: 100% !important;
    font-size: 3.2rem !important;
}

.editor-styles-wrapper .lead {
    max-width: none !important;
}

.editor-styles-wrapper .section-head {
    max-width: none !important;
}
/* =========================================================
   STARTSEITE – KOMPAKTERE DESKTOP-DARSTELLUNG
   Technikstube
   ========================================================= */

@media (min-width: 901px) {

    /* Inhalt auf dem Desktop besser ausnutzen */
    .ts-main .container {
        width: min(1160px, calc(100% - 60px)) !important;
        max-width: 1160px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    /* Hero deutlich kompakter */
    .ts-main .hero {
        padding-top: 48px !important;
        padding-bottom: 42px !important;
    }

    .ts-main .hero-grid {
        display: grid !important;
        grid-template-columns: 1.25fr .75fr !important;
        gap: 30px !important;
        align-items: center !important;
    }

    .ts-main .hero h1 {
        font-size: clamp(2.7rem, 4.5vw, 4rem) !important;
        margin-bottom: 12px !important;
    }

    .ts-main .hero .lead {
        margin-bottom: 12px !important;
    }

    .ts-main .actions {
        margin-top: 18px !important;
    }


    /* Alle weiteren Bereiche weniger hoch */
    .ts-main section {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    .ts-main .section-head {
        margin-bottom: 22px !important;
    }

    .ts-main .section-head h2 {
        margin-bottom: 8px !important;
    }


    /* Drei Vorteile nebeneinander */
    .ts-main .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: none !important;
    }


    /* Zwei Dienstleistungen nebeneinander */
    .ts-main .grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: none !important;
    }


    /* Karten etwas kompakter */
    .ts-main .card,
    .ts-main .hero-card,
    .ts-main .contact-box {
        padding: 20px !important;
    }

    .ts-main .card h3,
    .ts-main .hero-card h3 {
        margin-bottom: 8px !important;
    }

    .ts-main .card p {
        margin-top: 6px !important;
        margin-bottom: 8px !important;
    }


    /* Preise auf großen Bildschirmen zweispaltig */
    .ts-main .price-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .ts-main .price-row {
        padding: 13px 16px !important;
    }


    /* Abschluss-Bereich kompakter */
    .ts-main .band {
        padding: 26px 30px !important;
        gap: 20px !important;
    }


    /* Footer etwas näher an den Inhalt */
    .footer {
        margin-top: 25px !important;
        padding-top: 35px !important;
    }
}


/* =========================================================
   TABLET / HANDY
   Dort bleibt alles übersichtlich untereinander
   ========================================================= */

@media (max-width: 900px) {

    .ts-main .hero {
        padding-top: 45px !important;
        padding-bottom: 40px !important;
    }

    .ts-main section {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }

    .ts-main .price-list {
        grid-template-columns: 1fr !important;
    }
}