/* ---- CSS RESET & NORMALIZE ---- */
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin:0;
  padding:0;
  border:0;
  font-size:100%;
  font: inherit;
  vertical-align:baseline;
  box-sizing:border-box;
}
html { height: 100%; scroll-behavior: smooth; }
body { min-height:100vh; line-height:1.6; background: #131B22; }
article,aside,details,figcaption,figure,
footer,header,hgroup,main,menu,nav,section { display: block; }
*, *:before, *:after { box-sizing: inherit; }
a {color: inherit; text-decoration: none; transition:color .2s;}
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; border: none; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit; border: none; outline: none; background: none;
}

/* ---- VARIABLES (with Fallbacks) ---- */
:root {
  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-md: 18px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-xxl: 48px;

  --brand-primary: #254159;
  --brand-secondary: #E26834;
  --brand-accent: #42843F;
  --brand-bg: #151D26;
  --brand-text: #f5f7fa;
  --brand-card-bg: #203142;
  --brand-border: #1B2633;
  --brand-shadow: rgba(33,55,95,0.14);
  --brand-neon: #35FFD3;
  --brand-gradient-from: #254159;
  --brand-gradient-to: #1B2633;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  background: linear-gradient(120deg, var(--brand-gradient-from) 0%, var(--brand-gradient-to) 100%);
  font-family: var(--font-body);
  color: var(--brand-text);
  font-size: var(--fs-sm);
  min-height:100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight:700;
  line-height:1.15;
  letter-spacing:0.02em;
  color: #fff;
  margin-bottom: 16px;
}
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p, ul, ol, dl, label, input, textarea, select {
  font-size: var(--fs-sm);
  color: var(--brand-text);
}

label { font-weight:500; letter-spacing: .5px; margin-bottom: 4px; display:block; }
input, textarea {
  width:100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 7px;
  border: 1px solid var(--brand-border);
  background: #192733;
  color: #fbfbfb;
  font-family:var(--font-body);
  box-shadow:0 1px 4px 0 rgba(60,225,254,0.04);
  caret-color: var(--brand-accent);
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  border-color: var(--brand-neon);
  box-shadow: 0 0 6px 0 var(--brand-neon);
}

textarea { resize:vertical; min-height:80px; }

/* ---- Layout Utilities ---- */
.container {
  width:100%;
  max-width:1160px;
  margin:0 auto;
  padding:0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width:100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width:100%;
}
.section:last-child { margin-bottom: 0; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--brand-card-bg);
  border-radius:14px;
  box-shadow: 0 2px 16px 0 var(--brand-shadow);
  padding:28px;
  min-width:260px;
  min-height: 140px;
  transition: box-shadow .2s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 #35FFD378, 0 2px 16px 0 var(--brand-shadow);
  border-color: var(--brand-neon);
  transform: translateY(-6px) scale(1.02);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Text-Image Section Util */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  color: #222;
  box-shadow: 0 2px 20px 0 var(--brand-shadow);
  border-left: 5px solid var(--brand-accent);
  transition: border .18s, box-shadow .18s;
}
.testimonial-card blockquote {
  color: #18303C;
  font-style:italic;
  font-size: var(--fs-md);
  margin:0 0 8px 0;
}
.testimonial-card:hover {
  border-left: 5px solid var(--brand-secondary);
  box-shadow: 0 8px 32px 0 #E2683440, 0 2px 16px 0 var(--brand-shadow);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- Header & Navigation Styles ---- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34, 49, 76, 0.97);
  padding: 20px 18px;
  position: relative;
  z-index: 1020;
  box-shadow: 0 2px 8px 0 rgba(38,54,97,0.10);
}
header img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--brand-text);
  padding: 4px 9px;
  border-radius:7px;
  transition: color .18s, background .18s;
}
nav a:hover, nav a:focus {
  color: var(--brand-neon);
  background: rgba(53,255,211,0.07);
}
.button-primary {
  background: var(--brand-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight:600;
  padding: 12px 26px;
  border-radius: 8px;
  margin-left: 24px;
  box-shadow: 0 2px 16px 0 rgba(226,104,52,0.17);
  font-size: var(--fs-md);
  border: none;
  cursor: pointer;
  text-shadow: 0 0 8px var(--brand-neon);
  transition: background 0.22s, box-shadow .2s, transform .17s;
  position: relative;
  z-index:1;
}
.button-primary:hover, .button-primary:focus {
  background: #ff7d44;
  box-shadow: 0 0 18px #35FFD355, 0 2px 16px #E2683440;
  transform: translateY(-2px) scale(1.04);
}
.button-secondary {
  background: none;
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-weight:600;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: var(--fs-md);
  cursor: pointer;
  transition: color 0.19s, border .18s, background .17s;
}
.button-secondary:hover, .button-secondary:focus {
  color: #fff;
  background: var(--brand-accent);
}

/* --- Hamburger Mobile ---- */
.mobile-menu-toggle {
  display:none;
  background: none;
  border:none;
  color: #fff;
  font-size:2.2rem;
  line-height: 1;
  padding:10px 14px;
  border-radius: 6px;
  z-index:1100;
  position: fixed;
  top:20px;
  right:15px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #232F3F;
  color: var(--brand-neon);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100vw;
  max-width: 100vw;
  height:100vh;
  background: rgba(21,29,38,0.96);
  box-shadow: -4px 0 18px 0 #35FFD350;
  z-index: 2050;
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(.7,.2,.19,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.0rem;
  margin: 24px 28px 8px 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 50%;
  transition: background 0.19s, color .18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { background: #222C3A; color: var(--brand-neon); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  padding: 28px 36px 28px 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  padding: 9px 16px;
  border-radius: 7px;
  transition: color .21s, background .19s;
  font-family: var(--font-display);
  font-weight: 600;
  width:100%;
  display: flex;
  justify-content:flex-end;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #35FFD310;
  color: var(--brand-neon);
}

/* Show/hide nav according to breakpoint */
@media (max-width: 950px) {
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .button-primary {
    display: none !important;
  }
}
@media (min-width: 951px) {
  .mobile-menu,
  .mobile-menu-toggle { display:none !important; }
}

/* ---- HERO & SECTION THEMES ---- */
.hero, .klima-hero, .tier-hero, .naturschutz-hero, .nachhaltig-hero {
  background: linear-gradient(120deg, #254159 80%, #42843F 100%);
  padding: 60px 0 48px 0;
  position: relative;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--brand-neon);
}
.hero h1,
.klima-hero h1,
.tier-hero h1,
.naturschutz-hero h1,
.nachhaltig-hero h1 {
  color: #fff;
  text-shadow: 0 0 20px #35FFD355, 0 2px 12px #18303C30;
  font-size: var(--fs-xxl);
}
.hero p,
.klima-hero p,
.tier-hero p,
.naturschutz-hero p,
.nachhaltig-hero p {
  color: #D3E5F1;
  font-size: var(--fs-lg);
  margin-bottom: 16px;
  max-width: 600px;
}
@media (max-width: 650px) {
  .hero,.klima-hero,.tier-hero,.naturschutz-hero,.nachhaltig-hero {
    padding: 38px 0 28px 0;
    margin-bottom: 30px;
    border-radius: 0 0 18px 18px;
  }
  .hero h1,
  .klima-hero h1,
  .tier-hero h1,
  .naturschutz-hero h1,
  .nachhaltig-hero h1 { font-size: 2rem; }
}

/* ---- FEATURE GRIDS ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.feature-grid li {
  background: var(--brand-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 var(--brand-shadow);
  padding: 32px 26px;
  min-width: 230px;
  flex:1 0 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow .2s, transform .17s, border .15s;
  margin-bottom: 20px;
  border: 1.5px solid #223969;
  position:relative;
}
.feature-grid li:hover {
  border-color: var(--brand-accent);
  box-shadow: 0 0 18px #35FFD366, 0 4px 28px #18303C22;
  transform: scale(1.025) translateY(-4px);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
  filter: drop-shadow(0 0 8px #35FFD38c);
}
.feature-grid h3 {
  font-size: var(--fs-lg);
  margin-bottom: 6px;
  color: var(--brand-neon);
}

/* ---- ARTICLE/LIST STYLES ---- */
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.article-list li {
  background: var(--brand-card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 var(--brand-shadow);
  padding: 30px 18px 24px 18px;
  min-width: 215px;
  transition: box-shadow .17s, transform .14s, border .15s;
  margin-bottom: 20px;
  flex: 1 0 180px;
  border: 1.5px solid #172C41;
  position:relative;
  display: flex;
  flex-direction:column;
  gap:14px;
}
.article-list li:hover {
  border-color: var(--brand-neon);
  box-shadow: 0 0 20px #35FFD366, 0 4px 32px #18303C22;
  transform: scale(1.018) translateY(-3px);
}
.article-list h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  margin-bottom:6px;
  color: var(--brand-neon);
}
.article-list a {
  margin-top: 9px;
  align-self: flex-start;
  color: var(--brand-secondary);
  font-weight:600;
  transition: color .17s, text-decoration.14s;
  text-decoration: underline;
}
.article-list a:hover {
  color: var(--brand-neon);
  text-decoration: underline wavy;
}
.category-tag {
  display:inline-block;
  font-size:13px;
  font-weight:bold;
  letter-spacing:1px;
  background: var(--brand-accent);
  color: #fff;
  border-radius: 7px;
  padding: 2.5px 10px;
  margin-bottom: 7px;
}

/* ---- ABOUT/TEAM Layouts ---- */
.team-bios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 18px;
}
.team-bio {
  background: var(--brand-card-bg);
  border-radius: 12px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 1px 10px 0 #25415922;
  min-width:180px;
  flex: 1 0 180px;
  color: var(--brand-text);
  margin-bottom: 20px;
}
.team-bio h3 { color: var(--brand-secondary); font-size: var(--fs-md);}

/* --- Newsletter section ---- */
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
  max-width: 430px;
  background: transparent;
  margin-top: 14px;
}

/* ---- Kontakt Page ---- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-details img { vertical-align: middle; margin-right: 8px; height: 1.1em; width:auto;filter:drop-shadow(0 0 6px #35FFD355);}
.kontakt form { margin: 18px 0 0 0; }
.kontakt button[type="submit"] { margin-top: -4px; }

.faq dl {
  display: flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 15px;
}
.faq dt {
  font-weight: bold;
  color: var(--brand-neon);
  margin-bottom: 4px;
}
.faq dd { color: var(--brand-text); margin-left: 0; }

/* ---- Legal Pages Styles ---- */
.legal, .legal-gdpr, .legal-cookie, .legal-nutzung {
  background: var(--brand-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 16px var(--brand-shadow);
  padding: 34px 20px 32px 20px;
  margin-bottom: 48px;
}
.legal h1, .legal-gdpr h1, .legal-cookie h1, .legal-nutzung h1 { color: var(--brand-secondary); }
.legal h2, .legal-gdpr h2, .legal-cookie h2, .legal-nutzung h2 { color: var(--brand-accent); }

/* ---- Thank You Section ---- */
.thank-you {
  background: linear-gradient(105deg,#254159 86%,#42843F 100%);
  border-radius:12px;
  box-shadow: 0 2px 16px var(--brand-shadow);
  padding: 38px 20px;
  margin-top: 48px;
  margin-bottom: 48px;
  text-align: center;
}
.thank-you h1 { margin-bottom:18px; color:var(--brand-secondary); }
.thank-you p { color:#edf6ff; font-size:var(--fs-md); }

/* ---- Footer ---- */
footer {
  background: #151D26;
  color: #cfe8ed;
  padding: 36px 18px 28px 18px;
  text-align: center;
  margin-top: 70px;
  border-top: 2px solid var(--brand-neon);
}
.footer-nav {
  display: flex;
  flex-direction:row;
  justify-content:center;
  gap: 12px;
  margin-bottom: 16px;
  font-size:14px;
  flex-wrap:wrap;
}
.footer-nav a {
  color: var(--brand-secondary);
  padding: 3px 7px;
  border-radius: 5px;
  transition:background .16s, color .14s;
}
.footer-nav a:hover { background: #35FFD320; color: var(--brand-neon); }
.footer-contact p {
  color: #98b6c4;
  font-size:14px;
  margin-bottom:4px;
  display:inline-block;
}

/* ---- Animations & Micro-Interactions ---- */
a, button, .feature-grid li, .card, .article-list li, .testimonial-card, .button-secondary, nav a, .mobile-nav a {
  transition: color .18s, background .18s, border .15s, box-shadow 0.17s, transform .14s;
}
input, textarea, .card, .feature-grid li, .article-list li {
  transition: border-color .18s, box-shadow .15s, background .14s, color .14s, transform .14s;
}

/* --- Responsive --- */
@media (max-width:950px) {
  .footer-nav { flex-direction: column; gap:8px; margin-bottom:12px;}
}
@media (max-width:768px) {
  .container { padding: 0 12px; }
  .content-wrapper { gap:18px; }
  .feature-grid, .article-list, .team-bios-grid { flex-direction: column; gap: 18px; }
  .feature-grid li, .article-list li, .team-bio, .card { min-width: 0; }
  .card-container, .content-grid { flex-direction: column; gap: 18px; }
  .testimonial-card { flex-direction: column; gap: 8px; }
}

@media (max-width:500px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .hero, .klima-hero, .tier-hero,
  .naturschutz-hero, .nachhaltig-hero { padding: 18px 0 12px 0;}
}

/* ---- Cookie Consent Banner ---- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right:0;
  width: 100vw;
  background: #203142ee;
  color: #fff;
  box-shadow: 0 -2px 24px #22313D66;
  padding: 20px 18px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cookieBannerIn .6s cubic-bezier(.65,.05,.36,1);
  gap: 16px;
}
@keyframes cookieBannerIn {
  0% { transform:translateY(110%); opacity: 0; }
  100% { transform:translateY(0); opacity: 1; }
}
.cookie-consent-banner__text { color: #edf7fa; font-size:var(--fs-sm); }
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 3px;
}
.cookie-btn {
  padding: 11px 22px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  margin: 0;
  min-width:120px;
  transition: background .17s, color .14s, box-shadow .16s;
}
.cookie-btn.accept {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-btn.accept:hover { background: #35FFD3; color:#164135; }
.cookie-btn.reject {
  background: #fd484854;
  color: #fff0eb;
}
.cookie-btn.reject:hover { background: var(--brand-secondary); color:#fff; }
.cookie-btn.settings {
  background: #142432;
  color: #fff;
  border: 1.5px solid var(--brand-neon);
}
.cookie-btn.settings:hover { color:var(--brand-neon); background: #fff0; }

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  position: fixed; left:0; top:0; width:100vw; height:100vh;
  background:rgba(34,49,76,0.85);
  z-index:3100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .35s cubic-bezier(.62,.2,.19,1);
}
@keyframes fadeIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: #22313d;
  border-radius: 14px;
  box-shadow: 0 4px 32px #18303C33;
  max-width: 400px;
  width: 96vw;
  padding: 36px 20px 24px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap:19px;
  animation: modalAppear .36s cubic-bezier(.61,.05,.14,1);
}
@keyframes modalAppear {
  0% { transform: translateY(80px) scale(.9); opacity: .1; }
  100% { transform: none; opacity:1; }
}
.cookie-modal h3 {
  color: var(--brand-secondary);
  margin-bottom: 3px;
}
.cookie-pref-item {
  display: flex;
  align-items: center;
  margin-bottom: 9px;
}
.cookie-pref-label {
  flex:1;
  font-size:15px;
  color:#fafafa;
}
.cookie-switch {
  position:relative; width: 38px; height: 22px; margin-left:9px;
}
.cookie-switch input[type="checkbox"] {
  opacity:0; width:0; height:0; position:absolute;
}
.cookie-slider {
  position:absolute; cursor:pointer; top: 0; left: 0; right:0; bottom:0;
  background: #192733;
  border-radius: 16px;
  transition: background .2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--brand-accent);
}
.cookie-slider:before {
  position:absolute;
  content:"";
  left:4px; top:4px;
  width:14px; height:14px;
  border-radius:50%;
  background: #fefefe;
  transition: left 0.16s cubic-bezier(.5,.2,.7,1);
}
.cookie-switch input:checked + .cookie-slider:before { left:20px; background: var(--brand-neon); }

.cookie-modal-actions {
  display: flex;
  gap:16px;
  margin-top: 11px;
}
.cookie-modal-actions .cookie-btn { min-width:0; }
.cookie-modal .essential-note { font-size:12px; color: #e9e9e9; }

@media (max-width: 630px) {
  .footer-contact p,
  .footer-nav a { font-size: 13px; }
  .newsletter form, .contact-details { max-width:99vw; }
}

/* --- Misc Utilities --- */
hr {
  border: none;
  border-top: 1.5px solid #223C41;
  margin: 34px 0;
}
strong { font-weight:bold; color:var(--brand-secondary);}

/* --- Hide scroll on modal open for cookie/modal --- */
body.modal-open {
  overflow: hidden;
}

/* END --- */
