/*
Theme Name: Fortbildungsschmiede Newsletter
Theme URI: https://example.com
Author: Fortbildungsschmiede
Author URI: https://example.com
Description: Minimalistisches WordPress-Theme fuer eine Newsletter-Anmeldung und Abmeldung mit Impressum-Hinweis.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: fortbildungsschmiede-newsletter
*/

:root {
    --fs-blue: #1f3a5f;
    --fs-teal: #2bb3b1;
    --fs-gold: #d9a441;
    --fs-soft: #f5f7fa;
    --fs-line: #d9e2ec;
    --fs-text: #2b2b2b;
    --fs-muted: #59636e;
    --fs-white: #ffffff;
    --fs-error: #c62828;
    --fs-success: #2e7d32;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--fs-text);
    background: var(--fs-white);
}

a {
    color: var(--fs-blue);
}

.fs-site {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
}

.fs-main {
    display: grid;
    place-items: start center;
    padding: 22px 14px 32px;
}

.fs-newsletter {
    width: min(100%, 680px);
    overflow: hidden;
    border: 1px solid rgba(31, 58, 95, 0.10);
    border-radius: 24px;
    background: var(--fs-white);
    box-shadow: 0 14px 35px rgba(31, 58, 95, 0.16);
}

.fs-hero {
    display: flex;
    min-height: 0;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 22px 32px;
    color: var(--fs-white);
    text-align: center;
    background: linear-gradient(135deg, var(--fs-blue), var(--fs-teal));
}

.fs-logo {
    width: 112px;
    height: 112px;
    min-width: 112px;
    min-height: 112px;
    max-width: 112px;
    max-height: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 10px;
    border-radius: 24px;
    background: var(--fs-white);
    color: var(--fs-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    font-weight: 800;
}

.fs-logo a,
.fs-logo .custom-logo-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-logo img {
    width: 100%;
    height: 100%;
    max-width: 92px;
    max-height: 92px;
    object-fit: contain;
}

.fs-hero h1 {
    margin: 0;
    color: var(--fs-white);
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
}

.fs-hero p {
    max-width: 460px;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    line-height: 1.5;
}

.fs-form {
    padding: 24px;
}

.fs-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    border: 1px solid var(--fs-line);
    border-radius: 16px;
    background: var(--fs-soft);
}

.fs-tabs label {
    margin: 0;
    cursor: pointer;
}

.fs-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fs-tabs span {
    display: block;
    min-height: 44px;
    border-radius: 12px;
    padding: 12px;
    color: var(--fs-blue);
    text-align: center;
    font-weight: 800;
}

.fs-tabs input:checked + span {
    background: var(--fs-white);
    box-shadow: 0 6px 16px rgba(31, 58, 95, 0.12);
}

.fs-field {
    display: block;
    margin-bottom: 14px;
    font-weight: 700;
}

.fs-field span {
    display: block;
    margin-bottom: 6px;
}

.fs-field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--fs-line);
    border-radius: 15px;
    padding: 13px 14px;
    background: var(--fs-white);
    color: var(--fs-text);
    font-size: 16px;
    outline: none;
}

.fs-field input:focus {
    border-color: var(--fs-teal);
    box-shadow: 0 0 0 4px rgba(43, 179, 177, 0.16);
}

.fs-hint {
    margin: 4px 0 20px;
    color: var(--fs-muted);
    font-size: 14px;
    line-height: 1.45;
}

.fs-message {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.fs-message.is-success {
    border: 1px solid rgba(46, 125, 50, 0.26);
    background: #eaf7ef;
    color: var(--fs-success);
}

.fs-message.is-muted {
    border: 1px solid rgba(31, 58, 95, 0.16);
    background: var(--fs-soft);
    color: var(--fs-blue);
}

.fs-message small {
    display: block;
    margin-top: 5px;
    color: var(--fs-muted);
    font-weight: 600;
}

.fs-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--fs-teal), var(--fs-blue));
    color: var(--fs-white);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(43, 179, 177, 0.28);
}

.fs-submit:hover,
.fs-submit:focus {
    filter: brightness(1.04);
}

.fs-footer {
    min-height: 74px;
    display: grid;
    place-items: center;
    padding: 18px 14px;
    border-top: 1px solid var(--fs-line);
    color: var(--fs-muted);
    text-align: center;
    font-size: 14px;
}

.fs-footer a {
    color: var(--fs-blue);
    font-weight: 800;
}

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

@media (max-width: 640px) {
    .fs-main {
        padding: 18px 10px;
    }

    .fs-newsletter {
        border-radius: 18px;
    }

    .fs-hero {
        padding: 24px 18px 26px;
    }

    .fs-hero h1 {
        font-size: 26px;
    }

    .fs-form {
        padding: 20px;
    }
}
