/*
Theme Name: Korrektur Diplomarbeit Archive
Description: A cleaned WordPress reconstruction of the archived UniTexter design for korrektur-diplomarbeit.de.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: korrektur-diplomarbeit
*/

:root {
    --kd-blue: #075183;
    --kd-blue-dark: #003f6b;
    --kd-blue-soft: #6aa9d2;
    --kd-orange: #ee7c2b;
    --kd-green: #79a759;
    --kd-text: #3f4448;
    --kd-muted: #6d747a;
    --kd-border: #d9e0e5;
    --kd-surface: #ffffff;
    --kd-page: #eef1f3;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--kd-page);
    color: var(--kd-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

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

a:hover,
a:focus {
    color: var(--kd-orange);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    top: 10px;
    left: 10px;
    z-index: 100000;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    background: #fff;
    color: #111;
}

.site-shell {
    width: min(980px, calc(100% - 24px));
    margin: 24px auto;
    background: var(--kd-surface);
    box-shadow: 0 10px 32px rgba(23, 47, 63, 0.16);
}

.site-header {
    position: relative;
    min-height: 180px;
    background: var(--kd-blue) url("assets/images/bg_header.jpg") center top / cover no-repeat;
}

.site-brand-link {
    position: absolute;
    inset: 0;
    display: block;
}

.contact-strip {
    position: absolute;
    right: 22px;
    bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 7px 13px;
    border-radius: 4px;
    background: rgba(0, 63, 107, 0.9);
    color: #fff;
    font-size: 13px;
}

.contact-strip a {
    color: #fff;
}

.primary-navigation {
    position: relative;
    background: var(--kd-blue-dark) url("assets/images/bg_menu.jpg") repeat-x;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    background: var(--kd-blue-dark);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.primary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0 10px;
    list-style: none;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    display: block;
    padding: 12px 10px 11px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    background: var(--kd-orange);
    color: #fff;
}

.site-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 560px;
}

.site-sidebar {
    padding: 24px 18px 30px;
    background: #e8edf0 url("assets/images/bg_left.jpg") repeat-y;
    border-right: 1px solid #d7dde1;
}

.sidebar-intro {
    margin-bottom: 22px;
}

.sidebar-intro h2 {
    margin: 0 0 10px;
    color: var(--kd-blue);
    font-size: 21px;
    line-height: 1.15;
}

.sidebar-intro strong {
    color: #34393d;
}

.sidebar-cta {
    display: block;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 5px;
    background: var(--kd-blue);
    color: #fff;
    font-weight: 700;
    text-align: center;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.sidebar-cta:hover,
.sidebar-cta:focus {
    background: var(--kd-orange);
    color: #fff;
    text-decoration: none;
}

.sidebar-section {
    margin-top: 24px;
}

.sidebar-section h3 {
    margin: 0 0 8px;
    color: var(--kd-blue);
    font-size: 17px;
}

.sidebar-section h4 {
    margin: -5px 0 10px;
    color: #7a8084;
    font-size: 12px;
    font-weight: 400;
}

.sidebar-links,
.sidebar-areas {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-links li {
    border-bottom: 1px solid rgba(0, 81, 131, 0.12);
}

.sidebar-links a,
.sidebar-links span {
    display: block;
    padding: 6px 4px 6px 17px;
    background: url("assets/images/bg_menu_arr.png") 3px 11px no-repeat;
    color: #3f4d56;
    font-size: 12px;
}

.sidebar-links span {
    opacity: 0.72;
}

.sidebar-areas li {
    padding: 2px 0;
    font-size: 12px;
}

.sidebar-cap {
    width: 118px;
    margin: 22px auto 0;
    opacity: 0.9;
}

.site-content {
    min-width: 0;
    padding: 28px 30px 42px;
}

.entry-header {
    margin-bottom: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f7fbfd, #e8f3f9);
    border-left: 5px solid var(--kd-blue);
}

.entry-title {
    margin: 0;
    color: var(--kd-blue);
    font-size: 28px;
    line-height: 1.2;
}

.entry-dates {
    margin: 8px 0 0;
    color: var(--kd-muted);
    font-size: 12px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--kd-blue);
    line-height: 1.25;
}

.entry-content h2 {
    margin: 30px 0 12px;
    font-size: 23px;
}

.entry-content h3 {
    margin: 22px 0 8px;
    font-size: 18px;
}

.entry-content p {
    margin: 0 0 15px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.kd-lead {
    font-size: 17px;
    line-height: 1.6;
}

.kd-highlight-panel {
    position: relative;
    margin: 0 0 25px;
    padding: 24px 24px 20px;
    background: #edf7fc url("assets/images/bg_right_top.png") right top no-repeat;
    border: 1px solid #d4e5ef;
    border-radius: 6px;
}

.kd-highlight-panel h2 {
    margin-top: 0;
}

.kd-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
    padding: 0;
    list-style: none;
}

.kd-check-list li {
    position: relative;
    padding-left: 24px;
}

.kd-check-list li::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 17px;
    height: 17px;
    background: url("assets/images/yes.png") center / contain no-repeat;
}

.kd-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 28px;
}

.kd-service-card {
    display: flex;
    flex-direction: column;
    min-height: 295px;
    padding: 18px 15px 15px;
    background: linear-gradient(#fff, #f3f5f6);
    border: 1px solid #cdd6db;
    border-radius: 7px;
    box-shadow: 0 3px 9px rgba(25, 62, 83, 0.1);
}

.kd-service-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--kd-blue);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.kd-service-card h3 {
    margin: 0 0 8px;
    color: var(--kd-blue);
    font-size: 17px;
}

.kd-service-card p {
    font-size: 13px;
}

.kd-service-card .kd-button {
    margin-top: auto;
}

.kd-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 5px;
    background: var(--kd-green);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.kd-button:hover,
.kd-button:focus {
    background: var(--kd-orange);
    color: #fff;
    text-decoration: none;
}

.kd-note {
    margin: 20px 0;
    padding: 15px 18px;
    background: #fffbe7;
    border-left: 4px solid #f0c94a;
}

.kd-legal-warning {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 2px solid #d36a1f;
    background: #fff4e9;
    color: #6b3413;
}

.kd-process {
    counter-reset: kd-step;
    padding: 0;
    list-style: none;
}

.kd-process li {
    position: relative;
    margin-bottom: 12px;
    padding: 13px 15px 13px 52px;
    background: #f4f7f8;
    border: 1px solid var(--kd-border);
}

.kd-process li::before {
    counter-increment: kd-step;
    content: counter(kd-step);
    position: absolute;
    top: 11px;
    left: 13px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--kd-blue);
    color: #fff;
    font-weight: 700;
}

.kd-request-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.kd-request-form .kd-field-full {
    grid-column: 1 / -1;
}

.kd-request-form label {
    display: block;
    margin-bottom: 5px;
    color: #34434d;
    font-weight: 700;
}

.kd-request-form input[type="text"],
.kd-request-form input[type="email"],
.kd-request-form input[type="tel"],
.kd-request-form select,
.kd-request-form textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #bfcbd2;
    border-radius: 4px;
    background: #fff;
    color: #242a2e;
    font: inherit;
}

.kd-request-form textarea {
    min-height: 150px;
    resize: vertical;
}

.kd-request-form input:focus,
.kd-request-form select:focus,
.kd-request-form textarea:focus {
    outline: 2px solid rgba(0, 81, 131, 0.25);
    border-color: var(--kd-blue);
}

.kd-form-status {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 4px;
}

.kd-form-status--success {
    background: #e7f5e2;
    border: 1px solid #a7cf98;
}

.kd-form-status--error {
    background: #fff0ed;
    border: 1px solid #e5a99d;
}

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

.site-footer {
    color: #eaf5fb;
    background: var(--kd-blue-dark);
}

.footer-heading {
    padding: 11px 22px;
    background: var(--kd-blue) url("assets/images/bg_footer_top.png") repeat-x;
    color: #fff;
    font-weight: 700;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 22px;
    background: url("assets/images/bg_footer_middle.png") repeat;
}

.footer-content a {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-meta {
    padding: 9px 22px;
    background: #003252;
    color: #c8dce8;
    font-size: 12px;
    text-align: center;
}

.not-found {
    padding: 40px 0;
}

@media (max-width: 820px) {
    .site-shell {
        width: min(100% - 16px, 980px);
        margin: 8px auto;
    }

    .site-header {
        min-height: 150px;
        background-size: auto 150px;
        background-position: left top;
    }

    .contact-strip {
        right: 10px;
        bottom: 8px;
        gap: 10px;
        font-size: 11px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        padding: 0;
    }

    .primary-menu.is-open {
        display: block;
    }

    .primary-menu a {
        padding: 11px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .site-layout {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        order: 2;
        border-top: 1px solid var(--kd-border);
        border-right: 0;
    }

    .site-content {
        padding: 24px 20px 32px;
    }

    .kd-service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .site-header {
        min-height: 135px;
        background-size: auto 135px;
    }

    .contact-strip {
        left: 8px;
        right: 8px;
        justify-content: center;
        flex-wrap: wrap;
        line-height: 1.2;
    }

    .entry-title {
        font-size: 23px;
    }

    .kd-check-list,
    .kd-request-form {
        grid-template-columns: 1fr;
    }

    .kd-request-form .kd-field-full {
        grid-column: auto;
    }

    .footer-content {
        flex-direction: column;
    }
}
