/* --- BASIS STYLING --- */
body {
    background-color: #babcbc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    color: #333;
    line-height: 1.6;
}

/* Die zentrale Box (Content-Box) */
.content-box, .success-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* --- HEADER & LOGO --- */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 25px;
}

.header-logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

h1 {
    text-align: center;
    font-size: 1.8rem;
    color: #000;
    margin-top: 0;
}

.intro-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

.intro-text a {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
}

/* --- FORMULAR ELEMENTE --- */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #999;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Speziell für die mitwachsende Textarea */
textarea {
    resize: none;
    overflow: hidden;
    min-height: 100px;
}

/* --- TOOLTIP (INFO-ICON) --- */
.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    cursor: help;
    margin-left: 8px;
    position: relative;
    font-weight: bold;
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    width: 300px; /* Breite für lange Beispieltexte */
    white-space: normal;
    text-align: left;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.4;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.info-icon:hover::after {
    visibility: visible;
    opacity: 1;
}

/* --- ZÄHLER & BUTTON --- */
#charCounter {
    font-size: 0.8rem;
    text-align: right;
    margin-top: 5px;
    color: #666;
}

.limit-reached {
    color: #b00000 !important;
    font-weight: bold;
}

.submit-btn, 
a.submit-btn {
    background-color: #000 !important; /* Tiefschwarz */
    color: #ffffff !important;         /* Weißer Text */
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;             /* Entfernt Unterstreichung beim Link */
    box-sizing: border-box;            /* Verhindert das Rausrutschen nach rechts */
    transition: background 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #333;
}

/* --- ERFOLGSSEITE (Zusatz) --- */
.success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.success-box .form-actions {
    width: 100%;
    max-width: 400px; /* Optional: Macht den Button auf der Erfolgsseite nicht ganz so riesig */
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
}

/* --- RESPONSIVE OPTIMIERUNG --- */
@media (max-width: 600px) {
    .content-box { padding: 20px; }
    .info-icon::after { width: 220px; }
}

