{% extends 'base.html.twig' %}
{% block title %}{{ seoTitle }}!{% endblock %}
{% block seo %}
<meta name="title" content="{{ seoTitle }}" />
<meta name="description" content="{{ seoDescription }}" />
<meta name="keywords" content="{{ seoKeys }}" />
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
.row.align-items-md-stretch {
margin: 1em 0;
}
input {
position: absolute;
opacity: 0;
z-index: -1;
}
.row {
display: flex;
}
.row .col {
flex: 1;
}
.row .col:last-child {
margin-left: 1em;
}
/* Accordion styles */
.tabs {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
}
.tab {
width: 100%;
color: white;
overflow: hidden;
}
.tab-label {
display: flex;
justify-content: space-between;
padding: 1em;
background: #2c3e50;
font-weight: bold;
cursor: pointer;
/* Icon */
}
.tab-label:hover {
background: #1a252f;
}
.tab-label::after {
content: "❯";
width: 1em;
height: 1em;
text-align: center;
transition: all 0.35s;
}
.tab-content {
max-height: 0;
padding: 0 1em;
color: #2c3e50;
background: white;
transition: all 0.35s;
}
.tab-close {
display: flex;
justify-content: flex-end;
padding: 1em;
font-size: 0.75em;
background: #2c3e50;
cursor: pointer;
}
.tab-close:hover {
background: #1a252f;
}
input:checked + .tab-label {
background: #1a252f;
}
input:checked + .tab-label::after {
transform: rotate(90deg);
}
input:checked ~ .tab-content {
max-height: 100vh;
padding: 1em;
}
</style>
{% endblock %}
{% block main %}
<div class="container">
<h1 class="text-center display-2">FAQ</h1>
<div class="container-fluid p-5 mb-4 ">
<div class="container">
<p class="text-center"> Diese Seite bietet Antworten auf häufig gestellte Fragen (FAQ), um Ihnen bei der Navigation und Nutzung unserer Dienstleistungen zu helfen.
</p>
<h3 class="text-center display-4">Fragen und Antworten:</h3>
</div>
<div class="container">
<div class="tabs">
{% for f in faq %}
<div class="tab">
<input type="radio" id="rd{{ loop.index }}" name="rd">
<label class="tab-label" for="rd{{ loop.index }}">{{ f.name }}</label>
<div class="tab-content">
{{ f.description | raw }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
{% endblock %}