
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@font-face {
    font-family: 'spitta';
    src: url('/fileadmin/templates/foundation_spitta/fonts/spitta.woff2?57697237') format('woff2'),
         url('/fileadmin/templates/foundation_spitta/fonts/spitta.woff?57697237') format('woff'),
         url('/fileadmin/templates/foundation_spitta/fonts/spitta.ttf?57697237') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ================================================
    TOKENS
================================================ */
:root {
    --blue:         #1A62A8;
    --blue-dark:    #154E87;
    --text:         #1A1A1A;
    --text-muted:   #555555;
    --border:       #C8CDD4;
    --border-error: #C0392B;
    --error-bg:     #FDECEA;
    --error-text:   #922B21;
    --bg:           #FFFFFF;
    --font:         'PT Sans', 'Helvetica Neue', Arial, sans-serif;
    --radius:       3px;
    --max-w:        66rem;
}

/* ================================================
    BASE
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ================================================
    MAIN
================================================ */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 15px;
}

.logo {
    margin-top: 20px;
    width: 110px;
}

.content-wrap {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.divider {
    width: 100%;
    border: none;
    border-top: 1px solid #D0D5DD;
    margin-bottom: 28px;
    margin-top: 30px;
}

.lead {
    width: 100%;
    text-align: center;
    color: var(--text);
    font-size: .9375rem;
    margin-bottom: 10px;
}

.retoure-container {
    width: 100%;
}

/* ================================================
    ERROR BOX (box-Typ: expired, db_error, …)
================================================ */
.error-box {
    width: 100%;
    max-width: var(--max-w);
    background: var(--error-bg);
    border-left: 4px solid var(--border-error);
    border-radius: var(--radius);
    color: var(--error-text);
    padding: 14px 18px;
    font-size: .9rem;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.error-box svg { flex-shrink: 0; margin-top: 2px; }

/* ================================================
    FORM
================================================ */
.retoure-form {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.retoure-input,
.retoure-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .9375rem;
    color: var(--text);
    background: var(--bg);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .15s;
}

.retoure-input::placeholder { color: #AAAAAA; }

.retoure-input:focus,
.retoure-select:focus {
    outline: none;
    border-color: var(--blue);
}

.retoure-input.is-invalid,
.retoure-select.is-invalid {
    border-color: var(--border-error);
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    font-family: 'spitta';
    content: '\e808';
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
}

.retoure-select { padding-right: 36px; cursor: pointer; color: var(--text-muted); }
.retoure-select:not([value=""]) { color: var(--text); }

.error-inline {
    font-size: .8125rem;
    color: var(--border-error);
}

.btn-submit {
    align-self: center;
    margin-top: 6px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 13px 40px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 21px;
    cursor: pointer;
    letter-spacing: 0;
    transition: background .15s;
}

.btn-submit::before {
    font-family: 'spitta';
    content: '\e82c';
    margin-right: 6px;
    font-size: 20px;
    font-weight: 500;
    vertical-align: bottom;
}

.btn-submit:hover  { background: var(--blue-dark); }
.btn-submit:active { opacity: .9; }

.form-note {
    margin-top: 20px;
    max-width: var(--max-w);
    text-align: center;
    font-size: .9rem;
    color: var(--text-muted);
}

/* ================================================
    FOOTER
================================================ */
.footer {
    border-top: 1px solid #E0E4EA;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 0;
}

.footer-brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    justify-content: center;
}

.brand-logo {
    width: auto;
    object-fit: contain;
}

.brand-logo-lg {
    width: auto;
    object-fit: contain;
}

/* ================================================
    FOOTER-2
================================================ */
.hide-for-small { display: block; }
.show-for-small { display: none; }
.visuallyhidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Footer-2 Desktop --- */
#footer-2 {
    position: relative;
    margin-top: 0.9375rem;
    font-size: 0.875rem;
}
#footer-2 .footer-2-body { padding-left: 65px; }
#footer-2 ul {
    margin-top: 0.4375rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
#footer-2 ul li {
    padding: 0 0.625rem;
    border-left: 1px solid #ccc;
    line-height: 1rem;
    margin-bottom: 1rem;
}
#footer-2 ul li:first-child { border: none; padding-left: 0; }
#footer-2 ul li a { color: #333; }
#footer-2 ul li a:hover { text-decoration: underline; }

.footer-logo { position: absolute; }
.footer-logo .icon-spitta::before {
    content: '';
    display: inline-block;
    width: 55px;
    height: 53px;
    background: url('/fileadmin/templates/foundation_spitta/img/logo-55-jahre.svg') no-repeat center / contain;
}

/* --- Footer-2 Mobile --- */
#footer-2-small {
    padding: 0 16px 1rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 20px;
    color: #333;
}
#footer-2-small .footer-copyright {
    margin-top: 0.9375rem;
    font-weight: bold;
}
#footer-2-small ul {
    margin-top: 12px;
    list-style: none;
    padding: 0;
}
#footer-2-small ul li {
    display: inline-block;
    padding: 0.3125rem 0.5rem;
}
#footer-2-small ul li a { color: #333; }
#footer-2-small img { width: 60px; }

/* ================================================
    RESPONSIVE
================================================ */
@media (max-width: 768px) {
    .main { padding: 0 12px 40px; }
    .content-wrap { max-width: 100%; }
    .page-title { font-size: 1.4rem; }
    .section-title { font-size: 1.2rem; }
    .lead { font-size: .875rem; }
    .footer-brands { gap: 16px; }
    .footer { padding: 20px 16px; }
    .hide-for-small { display: none !important; }
    .show-for-small { display: block !important; }
}

@media (min-width: 769px) {
    .retoure-container { width: 66.66667%; }
}

.iframe-wrap {
	position: relative;
	width: 100%;
	margin-top: 24px;
}

.iframe-overlay {
	width: 100%;
}
.retoure-iframe {
	display: block;
	width: 100%;
	height: 800px;
	border: none;
	border-radius: 4px;
}

@media (max-width: 600px) {
	.retoure-iframe {
		height: 600px;
	}
}
