/* Kontaktseite
   Generiert aus kontakt.html: nur Regeln, die von der Startseite abweichen oder neu sind. */

:root { --error:#b7574a; }
.form-header { padding: 9rem 5rem 3rem; text-align: center; background: #ffffff; animation: fadeUp .9s .2s ease both; }
.section-tag { font-size:.82rem; letter-spacing:.24em; text-transform:uppercase; color:var(--green); margin-bottom:.8rem; display:inline-flex; align-items:center; gap:.7rem; justify-content: center; }
h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 300; line-height: 1.15; margin-bottom: 1.1rem; }
.form-sub { font-size: .95rem; color: var(--mid); line-height: 1.8; max-width: 560px; margin: 0 auto; }
.form-wrap { padding: 1rem 5rem 6rem; display: flex; justify-content: center; }
form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 3rem 3rem; width: 100%; max-width: 680px; box-shadow: 0 18px 45px rgba(120,95,70,.08); animation: fadeUp .9s .4s ease both; position: relative; overflow: hidden; }
form::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--sand),var(--green-light)); }
.field { margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
label { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mid); margin-bottom: .55rem; font-weight: 400; }
label .req { color: var(--sand); margin-left: .15rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font-family: 'Jost', sans-serif; font-size: .95rem; color: var(--dark); background: #faf8f6; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; transition: border-color .25s, background .25s, box-shadow .25s; }
select { transition: none; }
input::placeholder, textarea::placeholder { color: #b8ab9c; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(122,155,130,.12); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237a6350' stroke-width='1.4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.6rem; cursor: pointer; }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; font-family: 'Jost', sans-serif; }
.checkbox-field { display: flex; align-items: flex-start; gap: .8rem; margin: 1rem 0; padding: 1rem 1.2rem; background: #faf8f6; border: 1px solid var(--line); border-radius: 12px; }
.checkbox-field:first-of-type { margin-top: 2rem; }
.checkbox-field:last-of-type { margin-bottom: 1.8rem; }
.checkbox-field.optional-note { background: rgba(122,155,130,.06); border-color: rgba(122,155,130,.22); }
.checkbox-field.optional-note label { font-size: .78rem; line-height: 1.55; }
.checkbox-field.optional-note label em { display: inline-block; font-style: italic; color: var(--mid); opacity: .8; margin-top: .25rem; }
.checkbox-field input[type="checkbox"] { appearance: none; flex-shrink: 0; width: 20px; height: 20px; border: 1.5px solid var(--sand); border-radius: 5px; background: #fff; cursor: pointer; position: relative; margin-top: .15rem; transition: background .2s, border-color .2s; }
.checkbox-field input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.checkbox-field input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkbox-field label { font-size: .85rem; letter-spacing: .02em; text-transform: none; color: var(--mid); line-height: 1.6; margin: 0; cursor: pointer; }
.checkbox-field label a { color: var(--green); text-decoration: underline; }
.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: 1.1rem 2.4rem; font-family: 'Jost', sans-serif; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; background: var(--sand); color: #fff; border: none; border-radius: 50px; cursor: pointer; transition: background .25s, transform .2s, box-shadow .25s; box-shadow: 0 8px 26px rgba(184,155,122,.38); }
.btn-submit:hover:not(:disabled) { background: #a08464; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(184,155,122,.45); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.msg { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 12px; font-size: .9rem; line-height: 1.6; text-align: center; display: none; }
.msg.success { background: rgba(122,155,130,.12); border: 1px solid rgba(122,155,130,.35); color: #4c6a55; }
.msg.error { background: rgba(183,87,74,.08); border: 1px solid rgba(183,87,74,.25); color: var(--error); }
.msg.visible { display: block; animation: fadeUp .5s ease both; }
.success-view { text-align: center; padding: 2rem 1rem 1rem; display: none; }
.success-view.visible { display: block; animation: fadeUp .6s ease both; }
.success-view .icon { width: 68px; height: 68px; margin: 0 auto 1.5rem; border-radius: 50%; background: rgba(122,155,130,.15); display: flex; align-items: center; justify-content: center; color: var(--green); }
.success-view .icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.icon-inline { width:1.05em; height:1.05em; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; fill:none; display:inline-block; vertical-align:-.18em; }
.success-view h2 { font-family:'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; margin-bottom: .8rem; }
.success-view h2 em { font-style: italic; color: var(--sand); }
.success-view p { color: var(--mid); line-height: 1.75; max-width: 440px; margin: 0 auto; }

@media(max-width:900px) {
  .form-header { padding: 7rem 1.5rem 2rem; }
  .form-wrap { padding: 1rem 1.5rem 4rem; }
  form { padding: 2.2rem 1.6rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 1.6rem; }
}

@media(max-width:600px) {
  .form-header { padding: 6rem 1.2rem 1.5rem; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  form { padding: 1.8rem 1.3rem; border-radius: 16px; }
  .btn-submit { font-size: .75rem; padding: 1rem 1.6rem; }
}
