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

body {
    font-family: 'Crimson Text', serif;
    background-color: #4a5a4a;
    background-image: url('hintergrund.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    background: rgba(255, 255, 255, 0.97);
    padding: 50px 40px;
    border-radius: 2px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    margin: 0 auto;
}

/* --- NEUES HEADER STYLING --- */
.main-title { 
    text-align: center; 
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* Stapelt die Wörter */
    align-items: center;
    margin-bottom: 50px;
}

.main-title .prefix {
    font-family: 'Crimson Text', serif;
    font-size: 14px; /* Kleiner, aber fett & gesperrt */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #000;
    margin-bottom: 20px; /* Zieht Hochzeit näher ran */
}

.main-title .script {
    font-family: 'Dancing Script', cursive;
    color: #000; 
    font-size: 3.5rem; /* Schön groß */
    letter-spacing: 1px;
    line-height: 1.0;
}

/* Beschreibungstext */
.description { 
    text-align: center; 
    font-size: 18px; 
    margin-bottom: 20px;
    color: #000;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* --- GAMS TRENNER STYLING --- */
.gams-separator {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.gams-separator img {
    max-width: 100px; /* Größe der Gams anpassen */
    height: auto;
}

/* Sektionen (Trennlinien entfernt) */
.section { 
    margin-bottom: 30px; 
    padding-top: 20px; 
}

.intro-selection {
    max-width: 250px; /* Schön schmal für die zwei Radio-Buttons */
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Sektions-Überschriften */
h3 {
    font-family: 'Crimson Text', serif;
    font-weight: 700;
    font-size: 16px; 
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

.hidden { display: none; }

.radio-label { 
    display: block; 
    margin-bottom: 15px; 
    cursor: pointer; 
    font-size: 16px;
}

input[type="text"], 
select, 
textarea {
    width: 100%;
    padding: 15px;
    padding-right: 40px;
    margin: 10px 0;
    border: 1px solid #000; 
    border-radius: 0; 
    box-sizing: border-box;
    font-size: 16px; /* iPhone Zoom Stop */
    color: #000;
    font-family: 'Crimson Text', serif; 
    line-height: 1.5;     
    resize: vertical;    
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
}

select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"24"%20height%3D"24"%20viewBox%3D"0%200%2024%2024" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline%20points%3D"6%209%2012%2015%2018%209"%2F><%2Fsvg>');
    background-repeat: no-repeat;
    background-position: right 15px center; /* 15px ABSTAND VOM RECHTEN RAND */
    background-size: 18px;
    cursor: pointer;
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid #000;
    background-color: #0000000D; /* 5% Schwarz */
}

.guest-entry {
    background: #0000000D; /* 5% Schwarz */
    padding: 20px;
    border-radius: 0;
    margin-bottom: 20px;
    border-left: 1px solid #000;
    position: relative;
}

.btn-remove-guest {
    position: absolute;
    top: 8px;
    right: 10px;
    width: auto;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.15s ease;
    visibility: hidden; /* Wird per JS eingeblendet wenn >1 Gast */
}

.btn-remove-guest:hover {
    color: #000;
    background: none;
}

/* Gemeinsames Button-Styling */
button {
    width: 100%;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    font-family: 'Crimson Text', serif;
    display: block;
}

/* Haupt-Absenden Button */
.btn-primary { 
    padding: 18px;
    border: 1px solid #000;
    background-color: #000; 
    color: #fff; 
    margin-top: 30px; 
    font-weight: 700;
    font-size: 16px;
}

.btn-primary:hover { 
    background-color: #fff; 
    color: #000; 
}

/* Zweit-Button "+ Gast hinzufügen" (Größe angepasst) */
.btn-secondary { 
    padding: 12px; /* Weniger klobig */
    border: 1px dashed #000; /* Gestrichelte Linie beibehalten */
    background-color: transparent; 
    color: #000; 
    margin-top: 10px; 
    margin-bottom: 40px; 
    font-size: 14px; /* WIRD VOM BROWSER AUF 16px GEZOGEN? NEIN, JETZT KLAPPTS */
    font-weight: normal;
}

.btn-secondary:hover {
    background-color: #0000000D;
}

/* Abstand für das Textarea-Feld am Ende */
.extra-info {
    margin-top: 20px;
}

.extra-info label {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* SPAM-SCHUTZ: Versteckt das Honeypot Feld */
.ohnedich {
    display: none !important;
    visibility: hidden;
}