/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- NEUE FARBPALETTE (Schwarz, Rot, Lachs, Pink) --- */
    --color-black: #0b0b0b;
    --color-red: #F07167;       /* Kräftiges Rot */
    /*--color-red-dark: #9d0208; /* Dunkles Rot */
    --color-red-dark: #d90429;
    --color-salmon: #F07167;    /* Lachs/Helles Rot */
    --color-pink: #ffbaba;      /* Akzent Pink */
    --color-bg-light: #fff5f5;  /* Sehr helles Pink/Weiß für Hintergrund */

    --primary-color: var(--color-red);
    --primary-dark: var(--color-red-dark);
    --primary-light: var(--color-salmon);
    --accent-color: var(--color-pink);
    
    --text-dark: var(--color-black);
    --text-light: #555555;
    --bg-card: #ffffff;
    --border-color: #ffd1d1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: #fff5f5;
    min-height: 100vh;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Hero Section with Polaroid Layout */
.hero {
    margin-top: 0;

    padding: 140px 30px 80px 30px;
    position: relative;
    overflow: hidden;

    
    /* <<< HINTERGRUNDBILD NUR OBEN >>> */
    background-image: 
        linear-gradient(rgba(64, 62, 62, 0.347), rgba(121, 118, 118, 0.423)),
        url('../Pictures/Geburtshaus1-149.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Höhe, damit das Bild sichtbar ist */
    min-height: 70vh;


}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}


/* Höhe so wählen, dass nichts überlappt */
.nav-spacer { height: 95px; } /* Beispielwert: top(15px) + Nav-Höhe(~72px) + Luft */


.polaroid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    perspective: 1000px;
}

.polaroid {
    background: white;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: fadeInUp 0.8s ease-out both;
    padding: 15px 15px 50px 15px; /* Unten mehr Platz für Label wie echtes Polaroid */
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    transform: rotate(-2deg);
}

.polaroid:nth-child(2) { transform: rotate(0deg); z-index: 10; }
.polaroid:nth-child(3) { transform: rotate(2deg); }

.polaroid:hover {
    transform: translateY(-15px) scale(1.05) rotate(0deg);
    box-shadow: 0 20px 50px rgba(217, 4, 41, 0.2);
    z-index: 20;
}

.news-card {
    width: 240px;
    animation-delay: 0.1s;
}

.news-card .polaroid-content {
    height: 220px;
    background: var(--primary-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.news-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    text-transform: uppercase;
}

.main-card {
    width: 450px;
    animation-delay: 0.2s;
    padding: 0;
    border-radius: 20px; /* Main card ist kein Polaroid, sondern Glas-Container */
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.main-card .polaroid-content {
    padding: 50px 40px;
    text-align: center;
}

.main-card h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.1;
}

.main-card .location {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.main-card .description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.geburt-card {
    width: 240px;
    animation-delay: 0.3s;
}

.geburt-card .polaroid-content {
    height: 220px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.polaroid-label {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-padding { padding: 80px 0; }

/* Typo & Headlines */
h1, h2, h3, h4 { font-weight: 800; color: var(--text-dark); }

h2 {
    
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}





.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-placeholder {
    font-size: 80px;
    text-align: center;
    background: var(--color-bg-light);
    border-radius: 50%;
    width: 300px;
    height: 300px;
    line-height: 300px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(217, 4, 41, 0.1);
   
}

/* Cards (Services, Team, etc.) */
.services-grid, .values-grid, .team-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;
    margin-top: 40px;
}

.team-grid-H {
    display: flex;
    justify-content: center;   /* Karten in der Mitte */
    align-items: flex-start;
    gap: 30px;
    flex-wrap: nowrap;         /* Karten bleiben NEBENEINANDER */
    margin: 40px auto 0;
    width: 100%;
    max-width: 900px;          /* steuert, wie viel Platz die 2 Karten zusammen haben */
}

.service-card, .team-member, .card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
}

.service-card:hover, .team-member:hover, .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(239, 35, 60, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    color: var(--primary-color);
}

.member-avatar {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: var(--color-bg-light);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Buttons */
.cta-section { text-align: center; margin: 80px 0; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.btn, .btn-primary, .contact-button, .cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(217, 4, 41, 0.3);
    text-align: center;
}

.btn:hover, .btn-primary:hover, .contact-button:hover, .cta-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary, .cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover, .cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Form Styles */
.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; font-weight: 700; margin-bottom: 5px; color: var(--text-light); }
.form-input {
    width: 100%; padding: 12px; border: 2px solid var(--border-color); border-radius: 8px;
    font-family: inherit; font-size: 1rem; outline: none; transition: 0.3s;
}
.form-input:focus { border-color: var(--primary-color); }

/* Footer */
.footer {
    background: var(--color-black);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer h4 { color: var(--primary-light); margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer a:hover { color: var(--primary-light); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.9rem; color: #777; }

/* Responsive */
@media (max-width: 900px) {
    .hero { margin-top: -21%;}
    .polaroid-container { flex-direction: column; gap: 50px; }
    .main-card { width: 100%; }
    .welcome-grid { grid-template-columns: 1fr; text-align: center; }
    .image-placeholder { margin-top: 30px; }
}

/* Der Hero muss Anker für das Pseudo-Element sein */
.hero {
  position: relative;
  overflow: visible;
  z-index: 0;
}

/* Umgedrehte Parabel unten */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 85px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: bottom center;

  /* Umgedrehte Parabel:
     Mitte hoch – Seiten niedrig */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'><path d='M0,120 Q720,0 1440,120 L1440,160 L0,160 Z' fill='%23fff5f5'/></svg>");
}